Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2007.02.11;
Скачать: CL | DM;

Вниз

Как востановить БД, из backup, под другим именем   Найти похожие ветки 

 
Rtn   (2007-01-18 14:21) [0]

MSSQL 2000.
???


 
Ega23 ©   (2007-01-18 14:27) [1]


Syntax
Restore an entire database:

RESTORE DATABASE { database_name | @database_name_var }
[ FROM < backup_device > [ ,...n ] ]
[ WITH
   [ RESTRICTED_USER ]
   [ [ , ] FILE = { file_number | @file_number } ]
   [ [ , ] PASSWORD = { password | @password_variable } ]
   [ [ , ] MEDIANAME = { media_name | @media_name_variable } ]
   [ [ , ] MEDIAPASSWORD = { mediapassword | @mediapassword_variable } ]
   [ [ , ] MOVE "logical_file_name" TO "operating_system_file_name" ]
           [ ,...n ]
   [ [ , ] KEEP_REPLICATION ]
   [ [ , ] { NORECOVERY | RECOVERY | STANDBY = undo_file_name } ]
   [ [ , ] { NOREWIND | REWIND } ]
   [ [ , ] { NOUNLOAD | UNLOAD } ]
   [ [ , ] REPLACE ]
   [ [ , ] RESTART ]
   [ [ , ] STATS [ = percentage ] ]
]

Restore part of a database:

RESTORE DATABASE { database_name | @database_name_var }
   < file_or_filegroup > [ ,...n ]
[ FROM < backup_device > [ ,...n ] ]
[ WITH
   { PARTIAL }
   [ [ , ] FILE = { file_number | @file_number } ]
   [ [ , ] PASSWORD = { password | @password_variable } ]
   [ [ , ] MEDIANAME = { media_name | @media_name_variable } ]
   [ [ , ] MEDIAPASSWORD = { mediapassword | @mediapassword_variable } ]
   [ [ , ] MOVE "logical_file_name" TO "operating_system_file_name" ]
           [ ,...n ]
   [ [ , ] NORECOVERY ]
   [ [ , ] { NOREWIND | REWIND } ]
   [ [ , ] { NOUNLOAD | UNLOAD } ]
   [ [ , ] REPLACE ]
   [ [ , ] RESTRICTED_USER ]
   [ [ , ] RESTART ]
   [ [ , ] STATS [= percentage ] ]
]

Restore specific files or filegroups:

RESTORE DATABASE { database_name | @database_name_var }
   < file_or_filegroup > [ ,...n ]
[ FROM < backup_device > [ ,...n ] ]
[ WITH
   [ RESTRICTED_USER ]
   [ [ , ] FILE = { file_number | @file_number } ]
   [ [ , ] PASSWORD = { password | @password_variable } ]
   [ [ , ] MEDIANAME = { media_name | @media_name_variable } ]
   [ [ , ] MEDIAPASSWORD = { mediapassword | @mediapassword_variable } ]
   [ [ , ] MOVE "logical_file_name" TO "operating_system_file_name" ]
           [ ,...n ]
   [ [ , ] NORECOVERY ]
   [ [ , ] { NOREWIND | REWIND } ]
   [ [ , ] { NOUNLOAD | UNLOAD } ]
   [ [ , ] REPLACE ]
   [ [ , ] RESTART ]
   [ [ , ] STATS [ = percentage ] ]
]

Restore a transaction log:

RESTORE LOG { database_name | @database_name_var }
[ FROM < backup_device > [ ,...n ] ]
[ WITH
   [ RESTRICTED_USER ]
   [ [ , ] FILE = { file_number | @file_number } ]
   [ [ , ] PASSWORD = { password | @password_variable } ]
   [ [ , ] MOVE "logical_file_name" TO "operating_system_file_name" ]
           [ ,...n ]
   [ [ , ] MEDIANAME = { media_name | @media_name_variable } ]
   [ [ , ] MEDIAPASSWORD = { mediapassword | @mediapassword_variable } ]
   [ [ , ] KEEP_REPLICATION ]
   [ [ , ] { NORECOVERY | RECOVERY | STANDBY = undo_file_name } ]
   [ [ , ] { NOREWIND | REWIND } ]
   [ [ , ] { NOUNLOAD | UNLOAD } ]
   [ [ , ] RESTART ]
   [ [ , ] STATS [= percentage ] ]
   [ [ , ] STOPAT = { date_time | @date_time_var }
       | [ , ] STOPATMARK = "mark_name" [ AFTER datetime ]
       | [ , ] STOPBEFOREMARK = "mark_name" [ AFTER datetime ]
   ]
]

< backup_device > ::=
   {
       { "logical_backup_device_name" | @logical_backup_device_name_var }
       | { DISK | TAPE } =
           { "physical_backup_device_name" | @physical_backup_device_name_var }
   }

< file_or_filegroup > ::=
   {
       FILE = { logical_file_name | @logical_file_name_var }
       |
       FILEGROUP = { logical_filegroup_name | @logical_filegroup_name_var }
   }




Страницы: 1 вся ветка

Текущий архив: 2007.02.11;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.039 c
2-1169576713
sinys
2007-01-23 21:25
2007.02.11
watches


15-1169137288
Marser
2007-01-18 19:21
2007.02.11
Крик души


3-1164029298
Ольга
2006-11-20 16:28
2007.02.11
Ошибка I/O Error 103 при работе с базой данных Paradox


2-1169663332
Lamer666
2007-01-24 21:28
2007.02.11
Как запустить программу КАК процесс??


9-1143433985
grisme
2006-03-27 08:33
2007.02.11
Перспективы КРИ





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский