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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Creating a copy of a DataBase

Author  Topic 

pgmr1998
Yak Posting Veteran

66 Posts

Posted - 2008-10-03 : 10:25:51
How can I create a copy of my SQL database with a different name on the same server?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-03 : 10:28:53
Backup the current database and restore with a new name in the server.
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-10-03 : 11:34:28
and map logins to database users like this:

sp_change_users_logins 'update_one'....
Go to Top of Page

pgmr1998
Yak Posting Veteran

66 Posts

Posted - 2008-10-03 : 11:36:38
Thanks...
Go to Top of Page
   

- Advertisement -