Creates a removable media database. Creates three or more devices (one for the system catalog tables, one the transaction log, and one or more for the data tables) and places the database on those devices. Use this stored procedure to create the database prior to performing database development.
sp_create_removable dbname, syslogical, 'sysphysical', syssize,
loglogical, 'logphysical', logsize, datalogical1, 'dataphysical1', datasize1
[... , datalogical16, 'dataphysical16', datasize16]
where
There must be from 1 through 16 data devices. In general, you will create more than one data device when the database is expected to be large and will need to be distributed on multiple disks.
Only removable media databases should be placed on these devices.
The device created for the transaction log is used only during database development. (When database development is complete you will run the sp_certify_removable system stored procedure. Among other actions, sp_certify_removable will truncate the transaction log, move it to the system device, and drop the log device.)
This example creates the database inventory as a removable database.
sp_create_removable inventory, invsys, 'c:\sql60\data\invsys.dat, 2', invlog,'c:\sql60\data\invlog.dat',4 invdata,'c:\sql60\data\invdata.dat',10,
Only the system administrator can use this stored procedure.
sp_certify_removable | sp_dboption |
sp_dbinstall | sp_dbremove |