Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 05.07.2007, 08:34   #1
djvogans
Архивный участник
 
Join Date: Apr 2005
Posts: 306
Default [Share] SQl related : fixing a db in suspect mode

microsoft recommends to restore a backup if u have a db in suspect mode . BUT .. if u don't have one , use this method to solve your problem:

Step 1.
alter database <db> set emergency
alter database <db> set single_user

Step 2.
dbcc checkdb (<db>, repair_allow_data_loss)
Step 3.

alter database <db> set multi_user

i hope it will help you.
djvogans is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:59.