Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Прочее";
Текущий архив: 2007.02.11;
Скачать: [xml.tar.bz2];

Вниз

Как востановить БД, из 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;
Скачать: [xml.tar.bz2];

Наверх




Память: 0.46 MB
Время: 5.281 c
15-1169092654
brother
2007-01-18 06:57
2007.02.11
для чего вообще нужно программировать под .net?


2-1169647027
DVM
2007-01-24 16:57
2007.02.11
Директивы условной компиляции


2-1169132592
Ega23
2007-01-18 18:03
2007.02.11
Как узнать собственный IP?


15-1169382268
NikNet
2007-01-21 15:24
2007.02.11
Где скачать редактор для SQL (sybase) с наворотами...


15-1169224186
Pasha L
2007-01-19 19:29
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
Английский Французский Немецкий Итальянский Португальский Русский Испанский