Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
And you need to make sure that it doesnt affect the applications which use that databaseMadhivananFailing to plan is Planning to fail
Kristen
Test
22859 Posts
Posted - 2006-11-16 : 13:16:03
sp_renamedb will leave the Logical names of the database files as they were - which were probably based on the name of the original database, and thus likely to add to confusion in the future!Kristen
DMcCallie
Yak Posting Veteran
62 Posts
Posted - 2006-11-16 : 14:21:30
1. Detach using EM2. Rename the .mdf and .ldf to avoid confusion.3. Attach the DB using EM (specify the newly renamed .mdf and .ldf containers as well as a new name for the DB)That's it!
Kristen
Test
22859 Posts
Posted - 2006-11-16 : 15:29:01
"That's it!"Won't change the logical names though ...