> This worked fine on my end. Are you running this in master? I'm thinking
> you might have accidentally created the certificate in a different database,
[quoted text clipped - 28 lines]
> > Thanks,
> > John
Why not just back up the cert and restore it in master?

Signature
Adam Machanic
SQL Server MVP - http://sqlblog.com
Author, "Expert SQL Server 2005 Development"
http://www.apress.com/book/bookDisplay.html?bID=10220
> Both of the examples I've seen have me setup users & certificates inside
> the
[quoted text clipped - 49 lines]
>> > Thanks,
>> > John
Gene Daigle - 06 Feb 2008 01:40 GMT
Problem is that my queues, services, and routes live in a user
database....and my cert will be in master (so i can reference it on the
endpoint).
What parts can live in master, and what should be in user database.
When my activation proc runs on the queue, i don't want it to reference the
userdatabase...i would rather the queue & activation proc were inside that db.
So can i put the service & the route in master, pointing to a queue in user
db? Adding a db name prefix to objects in my SSB setup scripts does not work
(ie...can't say mydb.mycert from ALTER ENDPOINT in master). Are some of
these components allowed to cross db boundaries? Or is recommended design to
have queue (and activation proc) in master?
Thanks
> Why not just back up the cert and restore it in master?
>
[quoted text clipped - 51 lines]
> >> > Thanks,
> >> > John
Adam Machanic - 06 Feb 2008 18:03 GMT
> So can i put the service & the route in master, pointing to a queue in
> user
[quoted text clipped - 4 lines]
> to
> have queue (and activation proc) in master?
Certificate-based principals can cross DB boundaries; as a matter of
fact, it's the recommended way to manage cross-database permissions in 2005
(IMO). If you haven't already, read the following article which will
hopefully clarify some of this for you:
http://sommarskog.se/grantperm.html

Signature
Adam Machanic
SQL Server MVP - http://sqlblog.com
Author, "Expert SQL Server 2005 Development"
http://www.apress.com/book/bookDisplay.html?bID=10220
Gene Daigle - 06 Feb 2008 02:07 GMT
After some further thought...I see where you're going here.
I simply restore the same cert into master...so I can reference it from the
endpoint. But the remote service binding in my user db is still valid. It
seems like a trick to me though, but if it works, I'm happy.
But if the broker instance id or some other db specific value is part of
what's hashed into that cert, then it won't really be the same cert in a
different db.
I'll try it out and let you know how it goes. Thanks.
> Why not just back up the cert and restore it in master?
>
[quoted text clipped - 51 lines]
> >> > Thanks,
> >> > John