mdf den db kurtarma

EXEC sp_attach_db @dbname = N’pubs’,
@filename1 = N’c:mssql7datapubs.mdf’,
@filename2 = N’c:mssql7datapubs_log.ldf’

sonra
burda da db yi single user moda aldım da satırı unuttum
use master
go
spdboptions ‘dbadi’,’single user’,’true’ gibi biseydi
go
DBCC CHECKDB (‘db_Adi’,REPAIR_REBUILD)
go

aslinda mdf saglam olsa son check islemine gerek kalmazdi heral ama neyse bi nebze kurtuldu oteside allah kerim 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *