Hi all, I have a dev database on a dev machine that is the same name as a database on a production server.
I would like to attach the dev database to the production server but I can't because there would be two database with the same name. I tried just renaming my dev .mdf to another name but that doesn't work., I think I need to rename the database files but I don't know how.
Can anyone tell me the solution to this problem?
Thanks
This will rename pubs to pubs2
EXEC sp_renamedb 'pubs', 'pubs2'
Denis the SQL Menace
http://sqlservercode.blogspot.com/
|||Thanks SQL_Menace, I'll give that a try
No comments:
Post a Comment