?
Solved

sp_addalias and sp_addrolemember

Posted on 2000-05-02
3
Medium Priority
?
1,082 Views
Last Modified: 2008-01-09
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?
0
Comment
Question by:ivanh
  • 2
3 Comments
 
LVL 5

Expert Comment

by:dtomyn
ID: 2770411
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".
0
 
LVL 1

Author Comment

by:ivanh
ID: 2770744
dtomyn - That answer is acceptable to me.

Lock it and I will award
0
 
LVL 5

Accepted Solution

by:
dtomyn earned 400 total points
ID: 2771265
OK, thanks!  

Also, you will notice that Experts-Exchange now has given the ability to questionnaires to accept a comment as an answer (just for future reference).
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have a large data set and a SSIS package. How can I load this file in multi threading?
This shares a stored procedure to retrieve permissions for a given user on the current database or across all databases on a server.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how the fundamental information of how to create a table.
Suggested Courses

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question