Procedure to Copy SQL Server Database
From Another SQL Server
From Source Server
Determine location of database/logs
- Start Enterprise Manager
- Click + to expand SQL Server Group
- Click + to expand your server group
- Click + to expand Databases
- Right click your database
- Click Properties
- Write down location of database
- Click Cancel button on Properties dialog
- Create a complete backup of the database
- Click your database
- Click backup database on right side of screen
- The Database - complete radio button should be selected
- Click the Add button
- The File name radio button should be selected
- Click ... box
- Scroll down and click + to expand the D folder
- Click + to expand your directory (SQLxxxx, where xxxx indicates your division)
- Click your backup folder to open
- Enter your file name in the File name box - (suggestion: BKUP_databasename_yymmdd)
- Click OK on the Backup Device Location dialog box
- Click OK on the Choose Backup Destination dialog box
- Click Overwrite existing media radio button
- Click Schedule check box, if you would like to schedule this backup at a later time
- If backup is not to be scheduled, skip to step 1.y
- Click ... box
- The Enable check box should be selected
- Click the One time radio button
- Select data and time backup is to occur by either keying in On date and On time or using the scroll buttons
- Click OK on the Edit Schedule dialog box
- Click on the Options tab
- Click Verify backup upon completion check box
- Click OK on SQL Server Backup dialog box
- If backup is not to be scheduled, you are done
- Click + to expand Management
- Click + to expand SQL Server Agent
- Click Jobs
- Right click job name on right side of screen
- Click properties
- Click scroll down button for Owner
- Scroll down and select sa
- Click the Apply button
- Click OK on the back properties dialog box
From Window NT Explorer
- If necessary, map source and destination servers
- Open Window NT Explorer
- Click Tools
- Select Map Network Drive...
- In Path enter your source/destination server address and directory
(ex. \\biwgdcsql02\sqlcorp)
- Click OK button
- If necessary, create backup and database destination directories
- Click destination server mapped network drive
- Click File drop down menu
- Move cursor to New
- Click Folder
- Enter new folder name and press <Enter>
- Verify Server Administrator has full control over database directory
- Right click database directory
- Click Properties
- Click Security tab
- Click Permission tab
- Server name\Administrators should be either the directory owner or have full control
- Click + to expand directory on source server containing your database backup
- Click + to expand backup destination directory on your destination server
- Click folder to open folder containing database backup on your source server
- Click and drag database backup file on your source server to destination server folder
From Destination Server
- Start Enterprise Manager
- Click + to expand SQL Server Group
- Click + to expand your server group
- Right click Databases
- Select All Tasks
- Click Restore Databases...
- Enter database name to be restored in Restore as database
- Click from device radio button
- Click Select Devices...
- Click Add... button
- Click ... button
- Scroll down and click + to expand directory containing database backup
- Click database backup file
- Click OK button on Backup Device Location dialog
- Click OK button on Choose Restore Destination dialog
- Click OK button on Choose Restore Devices dialog
- Click View Contents button on Restore Database dialog
- Select backup set to restore
- Click OK button on Select Backup dialog
- Click Options tab
- Verify that the radio button for Leave database operational has been selected
- Click OK button on Restore database