Ceviz Forum

Geri Dön   Ceviz Forum > Programlama > Veritabanları & SQL

Cevapla
 
LinkBack Seçenekler
Eski 28/09/2007, 12:38   #1 (permalink)
Üye
 
Emrahgs Adlı Üyenin Profil Grafiği
 
Üyelik Tarihi: 07/2005
Yer: Antalya
Mesaj: 324
Ok Suspect olan database i bulmak ?

sql server 2000 de suspect durumuna düşmüş database i bulan sql kodu varmı sp_helpdb suspectleri listelemiyor
Emrahgs hatta değil   Alıntı Yaparak Yanıtla
Eski 30/09/2007, 17:41   #2 (permalink)
Eski Cevizci
 
zuzuu Adlı Üyenin Profil Grafiği
 
Üyelik Tarihi: 05/2005
Mesaj: 289
Varsayılan

Sine you cannot access your db currrently as it is marked suspect, try to bring it normal as follows,

1.execute this ssms sp_resetstatus 'dbname' and after that you need to restart sql services........if this method fails,



2.try to detach the db and then again attach it it should come online but if you cannot attach the db after detaching it try as follows,

(a) create a database with the same name in another directory as the one you're trying to attach
(b) re-create all filesgroups and files as necessary
(c) shutdown the server
(d) swap in the old mdf file and any ndf files
(e) bring up the server and let the database attempt to be recovered and then go into suspect mode
(f) put the database in single_user and emergency modes
(g) run DBCC CHECKDB (dbname, REPAIR_ALLOW_DATA_LOSS) which will rebuild the log and run full repair
(h) return database to online, multi_user mode



3.if you fail in steps 1 and 2 you need to put the db into emergency mode

ALTER DATABASE DBNAME SET EMERGENCY and after that you can export the datas to another db using import export option..........

http://forums.microsoft.com/MSDN/Sho...77204&SiteID=1
zuzuu hatta değil   Alıntı Yaparak Yanıtla
Eski 02/10/2007, 10:31   #3 (permalink)
Üye
 
Emrahgs Adlı Üyenin Profil Grafiği
 
Üyelik Tarihi: 07/2005
Yer: Antalya
Mesaj: 324
Varsayılan

hayır ben suspect olan databasi nasıl tamir ederiz diye sormamaıştım
ama çözümü buldum

Select DatabasePropertyEx ('Database_adi', 'Status')
suspect olanlarda suspect olmayanlarda online yazıyor
Emrahgs hatta değil   Alıntı Yaparak Yanıtla
Cevapla

Bookmarks

Seçenekler

Mesaj Yazma Hakları
Yeni mesajgöndermezsiniz
Cevap yazamazsınız
Dosya ekleyemezsiniz
Mesajınızı düzenleyemezsiniz

BB code is Açık
[IMG] kodu Açık
HTML kodu Kapalı
Trackbacks are Açık
Pingbacks are Açık
Refbacks are Açık

Benzer Konular
Konu Konuyu açana göre Forum Cevap En Son Mesaj
Basit Bir kod, Elinde Olan Veya Yazabilecek Olan Var mı? Cut_Lee_Amm Javascript / DHTML / Ajax 8 29/05/2007 19:06
Suspect olması ve uçması (mssql 2000) Phantasm Veritabanları & SQL 3 05/12/2006 14:03
Suspect olan dosyalar nasıl tamir edilir maniac_mex Veritabanları & SQL 3 28/05/2005 19:06
veri tabaninda ayni olan veya bos olan kayitlar sayfada listelenmesin benimsitem ASP 6 20/05/2005 18:12
The Usual Suspect Sahin Kültür ve Sanat 6 04/11/2003 12:26


Forum saati Türkiye saatine göredir. GMT +3. Şu anda saat 05:50.

Reklamlar & Desteklenenler
Hassas Valf | Hassas Kaplama | Antalyamız | Gazete | Ticari Bilişim | Hakan Müştak | Rüya Tabirleri | Kadın | Hastalıklar | Cepte msn ve e-posta | Webmaster | Antalya Aupair | Turkish Property Antalya | Forum | Chat | Perde | Adsl | Araba | bolindir.com | guncelle.com | livescore | Web Tasarım | evden eve nakliyat | forum | evden eve | sohbet | Resimcim| Kalifiye İnsan Kaynakları | Web Tasarım | Oyun | Yusuf KOÇ | Akın Yorulmaz | şiir | UFO | Web Tasarım | Oyunlar | Canlı Tv |


Forum Yazılımı: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright ©2001 - 2008, Ceviz.net