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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Database Owner? Pls Help

Status
Not open for further replies.

Forri

Programmer
Oct 29, 2003
479
0
0
MT
Hi all

I have attached a new database to the Server and i've chosen a particular user to be the owner but when i viewed the properties the owner was labled as 'Machine Name/Administrator'. I can't change it? how can i do this! It used to work but now its not!

The machine is a P4 and having win2000 Pro installed! SQL Server 2000 too!

Thanks
 
First change the owner to sa, you can then update the owner to the correct owner name.

eg
sp_changedbowner 'sa'
sp_changedbowner 'New Owner'

Hope this helps.

Cheers

Phil
 
Do you know if it is possible to change the owner for views? I have about 30 views I need to change the owner.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top