I have a database in SQL server 2005 that is called MyStaging and I made a blank one called MyStaging_bk. I went to Backup MyStaging and then tried to restore in to MyStaging_bk. But it says I cannot restore since the backup sets are different.
How do I copy db’s and they are on the same database server?
I’m considering you can log into the sql server with a high level user.
I’m pretty sure that restoring a database from backup automatically puts it in multi user, but:
The newdatabase don’t have any user added to it. So:
UPDATE1:
You have to run each block separately or add the
gokeyword in each block.UPDATE2:
My bad here, the newdatabase will get all users from the backup database.