CATEGORII DOCUMENTE |
DOCUMENTE SIMILARE |
||||||||
|
||||||||
RESTORE DATABASE
[ FROM < backup_device > [ ,n ] ]
[ WITH
[ RESTRICTED_USER ]
[ [ , ] FILE = ]
[ [ , ] PASSWORD = ]
[ [ , ] MEDIANAME = ]
[ [ , ] MEDIAPASSWORD = ]
[ [ , ] MOVE 'logical_file_name'
TO 'operating_system_file_name' ]
[ ,n
]
[ [ , ] KEEP_REPLICATION ]
[ [ , ] ]
[ [ , ] ]
[ [ , ] ]
[ [ , ] REPLACE ]
[ [ , ] RESTART ]
[ [ , ] STATS [ = percentage ] ]
]
RESTORE DATABASE
< file_or_filegroup > [ ,n ]
[ FROM < backup_device > [ ,n ] ]
[ WITH
[ [ , ] FILE = ]
[ [ , ] PASSWORD = ]
[ [ , ] MEDIANAME = ]
[ [ , ] MEDIAPASSWORD = ]
[ [ , ] MOVE 'logical_file_name'
TO 'operating_system_file_name' ]
[ ,n
]
[ [ , ] NORECOVERY ]
[ [ , ] ]
[ [ , ] ]
[ [ , ] REPLACE ]
[ [ , ] RESTRICTED_USER ]
[ [ , ] RESTART ]
[ [ , ] STATS [= percentage ] ]
]
RESTORE
DATABASE
< file_or_filegroup > [ ,n ]
[ FROM < backup_device > [ ,n ] ]
[ WITH
[ RESTRICTED_USER ]
[ [ , ] FILE = ]
[ [ , ] PASSWORD = ]
[ [ , ] MEDIANAME = ]
[ [ , ] MEDIAPASSWORD = ]
[ [ , ] MOVE 'logical_file_name'
TO 'operating_system_file_name' ]
[ ,n
]
[ [ , ] NORECOVERY ]
[ [ , ] ]
[ [ , ] ]
[ [ , ] REPLACE ]
[ [ , ] RESTART ]
[ [ , ] STATS [ = percentage ] ]
]
RESTORE
DATABASE
< file_or_filegroup > [ ,n ]
[ FROM < backup_device > [ ,n ] ]
[ WITH
[ RESTRICTED_USER ]
[ [ , ] FILE = ]
[ [ , ] PASSWORD = ]
[ [ , ] MEDIANAME = ]
[ [ , ] MEDIAPASSWORD = ]
[ [ , ] MOVE 'logical_file_name'
TO 'operating_system_file_name' ]
[ ,n
]
[ [ , ] NORECOVERY ]
[ [ , ] ]
[ [ , ] ]
[ [ , ] REPLACE ]
[ [ , ] RESTART ]
[ [ , ] STATS [ = percentage ] ]
]
unde:
<
backup_device > ::=
| =
}
si:
<
file_or_filegroup > ::=
|
FILEGROUP =
}
RESTORE DATABASE nwind_new FROM DISK = 'c backupsnorthwindnwind.bak'
WITH
MOVE 'northwind' TO 'd:Program FilesMicrosoft SQL ServerDatanwind_new.mdf'
MOVE 'northwind_log' TO 'd:Program FilesMicrosoft SQL ServerDatanwind_new_log.ldf'
RESTORE FILELISTONLY
FROM DISK = 'd:backupsfilescomplete.bak'
-- aceasta este transactia caruia I se asociaza numele Demo
BEGIN TRAN Demo
UPDATE Customers
WHERE NAME = 'Tony Munitz'
COMMIT TRAN Demo
-- restore la punctual Demo
RESTORE LOG NorthWind_Test
FROM DISK = 'd:backupsTLOG_23.BAK'
WITH STOPBEFOREMARK = 'Demo'
RESTORE DATABASE Nwind_New
FROM DISK = 'd:backupsnwindnwind_diff.bak'
WITH RECOVERY
Politica de confidentialitate | Termeni si conditii de utilizare |
Vizualizari: 1146
Importanta:
Termeni si conditii de utilizare | Contact
© SCRIGROUP 2024 . All rights reserved