You can generate SQL from the dump history file and dump information to create a new target database has a different name than the source database.
load database src_dbname with listonly=load_sql
load database src_dbname with listonly=create_sql
load database src_dbname with listonly=(create_sql, load_sql)
1> load database sourcedb with listonly=(create_sql, load_sql) 2> go disk init name = 'master' , physname = 'd:/dbs/d_master.dev' , size = '450M' go create database sourcedb on master = '10M' log on master = '10M' with override for load go load database sourcedb FROM 'd:/dbs/full.dmp' go load tran sourcedb FROM 'd:/dbs/tran1.dmp' go load tran sourcedb FROM 'd:/dbs/tran2.dmp' go 1>
load [database | transaction] [src_dbname as target_dbname | target_dbname = src_dbname]where:
1> load database sourcedb as targetedb 2> with listonly=(create_sql, load_sql) 3> go disk init name = 'master' , physname = 'd:/dbs/d_master.asecarina' , size = '450M' go create database targetdb on master = '10M' log on master = '10M' with override for load go load database targetdb from 'd:/dbs/full.dmp' go load tran targetdb from 'd:/dbs/tran1.dmp' go load tran targetdb from 'd:/dbs/tran2.dmp' go 1>You can specify a database mapping clause in the load database or load transaction command only if you use the listonly=create_sql or listonly=load_sql options.
1> load tran sourcedb as targetdb from "d:/dbs/tran1.dmp" 2> with listonly=create_sql 3> go disk init name = 'master' , physname = 'd:/dbs/d_master.asecarina' , size = '450M' go create database targetdb on master = '10M' log on master = '10M' with override for load go