Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Creating New db(with new name) with the old db backup sql server 2008

$
0
0

Friends..

version: Sql Server 2008

I have a database in a name college1 (more than 200 tables and view etc...)

i want to create a new db with all the structures including the data of the above db college1 with a new name college2

so...i finished the step 1 successfully.. what are the other steps i have to do...like validating the invalid objects. etc....

Step 1:

RESTORE DATABASE college2 FROM DISK = 'D:\DailyDBbackup\college1.bak'
  WITH replace,
  move 'college2 ' TO 'D:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\college2 .mdf',
  move  'college2 _log' TO 'D:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\college2 _log.ldf';

step 2: ?

Step 3: ?

thanks...


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>