can you any body tell me suppose database is suspect mode.
how can take to normal?

Answers were Sorted based on User's Feedback



can you any body tell me suppose database is suspect mode. how can take to normal?..

Answer / praveen.g

1. Firstly look in the SQL Server Logs in Enterprise Manager
(EM). To get there, start EM and drill down from the
Database Server … Management … SQL Server Logs. There
should be multiple logs starting with Current and then
followed by 6 or more archived logs.

2. Review all recent Error Log(s). There WILL be an
indication here as to why the database has been marked
suspect. You need to fix whatever the problem is first
(i.e. missing file, permissions problem, hardware error
etc.)

3. Then, when the problem has been fixed and you're either
sure that the data is going to be ok, or you have no backup
anyway, so you've nothing to lose, then change the database
status to normal and restart SQL Server.

4. To change the database status we will us the following
store procedure: sp_resetstatus.
The steps are as follows:

a. USE master
GO
sp_configure 'allow updates', 1
GO
RECONFIGURE WITH OVERRIDE
GO
b.
sp_resetstatus
GO
-- Example: sp_resetstatus ‘Washington’

5. After the procedure is run, immediately disable updates
to the system tables:

a. sp_configure 'allow updates', 0
GO
RECONFIGURE WITH OVERRIDE
GO

6. Stop and Restart ALL SQL Server Services

Is This Answer Correct ?    0 Yes 0 No

can you any body tell me suppose database is suspect mode. how can take to normal?..

Answer / kumar.t

EXEC sp_resetstatus 'database name'

By
Kumar.T

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More SQL Server Interview Questions

List the different types of collation sensitivities in sql server?

0 Answers  


What are the fixed server level roles? : sql server security

0 Answers  


What is a derived table?

0 Answers  


what exactly sql injuction.how to overcome.....

0 Answers   CTS, IBM,


How to disconnect from a sql server using mssql_close()?

0 Answers  






Why use triggers?

0 Answers  


What is the stored procedure?

0 Answers  


What is scheduled job and how to create it?

0 Answers  


How do I change my passwords (database, LDAP, and so on) without causing an outage?

0 Answers   IBM,


How to retrieve duplicate rows in a table? How to delete the duplicate entries in a table?

15 Answers   Leo Technologies, Mannar Company, Synechron,


What is service broker? : sql server database administration

0 Answers  


two tables are there.1st table EMP has two columns ID and name and contains data 1,A 2,B 3,C 2nd table EmpSal has 2 columns ID and Salary Contains data -1,1000 2,5000 3,3000 Find name of employee having maximum salary ?

5 Answers   CSE,


Categories