Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

object owner "dbo"

Status
Not open for further replies.

katgirl

Programmer
Jul 6, 2006
114
US
Hi,

I have a developer here, that when she logs into and creates tables in the database, the owner of the table is her login, not dbo.

How can I change the settings so that the tables she creates belongs to dbo instead?

Or alternatively, she needs to be able to run:

execute sp_changeobjectowner 'HerLogin', 'dbo'

Is there a way to grant execute permission on a single system stored procedure to a single user?

Thanks!!
 
In order to be able to create objects under the dbo login you either need to map her login to the dbo user within the database or make her a member of the sysadmin role giving her sa rights to the SQL Server.

If neither can be done then she'll need to either qualify the objects owner as dbo or run the sp_changeobjectowner procedure.

Yes you can grant the right to run a system stored procedure to a user by using the GRANT command.

Denny
MCSA (2003) / MCDBA (SQL 2000) / MCTS (SQL 2005) / MCITP Database Administrator (SQL 2005)

--Anything is possible. All it takes is a little research. (Me)
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top