DATETIME SELECT SELECT INTO DATE PAD STRING DYNAMIC SQL CURSOR MONEY FORMAT PERCENT STORED PROCEDURE SQL SERVER AGENT JOB OPTIMIZATION WHILE LOOP OVER PARTITION BY UPDATE
SITE SEARCH SQLUSA.com HEADLINES NEWS
SQL E/BOOKS   SQL 2014 PROGRAMMING   DOWNLOADS
SCRIPTS SQL 2005 SQL 2008 ARTICLES
SQL JOBS TWITTER FORMAT VIDEOS
How to reset a suspect database?

Click here for SQL Server 2005 & SQL Server 2008 suspect database.

For SQL Server 2000: Prior to resetting examine if all database files are OK. Check SQL Server error log and Event Viewer for related messages. Check for file sharing issues, file backup and anti-virus software. To reset execute the following script in Query Analyzer:

-- SQL Server database suspect - SQL Server database marked suspect

-- How to recover a database marked suspect

sp_configure "Allow updates" , 1

go

 

update sysdatabases

set status = status & ~ 256

where (name = 'SuspectDatabaseName')

go

 

sp_configure "Allow updates" , 0

go

 

Exam Prep 70-461
Exam 70-461
DATETIME SELECT SELECT INTO DATE PAD STRING DYNAMIC SQL CURSOR MONEY FORMAT PERCENT STORED PROCEDURE SQL SERVER AGENT JOB OPTIMIZATION WHILE LOOP OVER PARTITION BY UPDATE