Link to home
Start Free TrialLog in
Avatar of ivanh
ivanh

asked on

sp_addalias and sp_addrolemember

addalias was nice in that when objects were created, they were created under dbo.  I tried using addrolemember and added my user to db_owner, but when the objects are created, they are created under that user account.  I want the objects created under dbo.  sp_addalias is still available in 7.x, but they say it's for backward compat.  

REAL QUESTION:  In MS vision, how can I get the same exact benefit as sp_addalias?
Avatar of dtomyn
dtomyn

My understanding is that you can't.  The best you can do is change the object's owner after creation or create it as "dbo.objectname".
Avatar of ivanh

ASKER

dtomyn - That answer is acceptable to me.

Lock it and I will award
ASKER CERTIFIED SOLUTION
Avatar of dtomyn
dtomyn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial