INF: Creating a Duplicate SQL DatabaseID: Q69359
|
This article describes one method for creating a duplicate SQL database.
disk init
name = "<device name>"
physname = "<full path name of .dat file>"
vdevno = <unused device number>
size = <size of device>
NOTE: Issue an sp_helpdevice to find out what devices are
available. For example:
disk init
name = "developmentdevice"
physname = "d:\development\development.dat"
vdevno = 8
size = 5120
dump database <database name> to <dumpdevice>For example:
dump database development to diskdumpdevelopmentNOTE: Create a dump device by issuing the following command:
sp_addumpdevice "<disk|diskette>", "<logical name>", "<physical name>", <cntrltype>For example:
sp_addumpdevice "disk", "diskdumpdevelopment", "d:\dump.dat",2
sp_renamedb <currentname>, <newname>For example:
sp_renamedb development, production
create database development on developmentdevice = 5,
developmentlog = 2
sp_logdevice development, developmentlog
load database development from diskdumpdevelopment
Additional query words: Dumping loading repair Windows NT
Keywords : kbusage SSrvGen SSrvWinNT
Version : 4.2 | 4.2 4.21 4.21a
Platform : OS/2 WINDOWS
Issue type :
Last Reviewed: March 10, 1999