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

Renaming a database in SQL 1

Status
Not open for further replies.
May 31, 2002
5
0
0
US
How do I rename a database in SQL Server 2000? Is there a stored proc I can use. Im having trouble locating it. Thanks.
 
sp_renamedb

This example changes the name of the accounting database to financial.

EXEC sp_renamedb 'accounting', 'financial'



Hope this helps.
 
Pretty starighforward...I could have guessed that one, huh?

Thanks for you help.
 
Pretty straightforward...I could have guessed that one, huh?

Thanks for you help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top