Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Database in "suspect" mode (SQL Server Management

Author  Topic 

henryvuong
Starting Member

8 Posts

Posted - 2011-03-19 : 15:50:34
This morning, I made a backup copy of the SQL Server database. Because the log file has grown too big (over 15GB), I first shrank it to 1mb. After copying it, I opened SQL Server Management Studio 2005, tried to attach the backup database to it, but the operation failed. My guess is because the original database, which has the same name, has been previously attached to the SQL Server Management Studio. By trying to attach another db with the same name, I created a conflict and the operation failed. But what troubles me now is that the original database is labeled as "suspect" in SQL Server Management Studio. It looks like the original db has been corrupted.

I ran the following sql command:
quote:
DBCC CHECKDB ('DatabaseName’) WITH NO_INFOMSGS, ALL_ERRORMSGS


and the following message appeared:

quote:
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '‘'.
Msg 319, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'with'. If this statement is a common table expression or an xmlnamespaces clause, the previous statement must be terminated with a semicolon.


I used the copied database to overwrite the original one but it did not help. The problem exists, it looks like now the copied db is also corrupted. Too bad now I cannot even use the log file to restore the database because I have shrunk it to almost nothing.

Can any offer a solution? This is urgent because I used this database to run my own business at home. Thanks.

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2011-03-19 : 16:42:56
Also asked here: http://www.sqlservercentral.com/Forums/Topic1080882-266-1.aspx

--
Gail Shaw
SQL Server MVP
Go to Top of Page
   

- Advertisement -