- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- BackOffice Products
- >
- SQL 7 DB in suspect state
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-01-2006 11:59 PM
тАО01-01-2006 11:59 PM
One of its Databases is in (suspect9 state.
How can I get it back to life?
Thank you.
regards.
Solved! Go to Solution.
- Tags:
- SQL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2006 01:25 AM
тАО01-02-2006 01:25 AM
Re: SQL 7 DB in suspect state
SQL7, antique...
You need to find cause of the problem, check sql logs and event viewer for any errors/warning.
You can reset the suspect status using "sp_resetstatus".
Syntax: sp_resetstatus database_name
Restart server after running sp_resetstatus.
Run DBCC Checkdb to check DB.
(you can also use DBCC CheckCatalog and
DBCC Checkalloc to identify the bad page in the database)
Regards, Igor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2006 01:47 AM
тАО01-02-2006 01:47 AM
Re: SQL 7 DB in suspect state
What are the potential risks that may cause the execution of the sp_resetstatus?
Any ideas?
Thank you.
I just want to make sure before I run it.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2006 02:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2006 08:53 PM
тАО01-02-2006 08:53 PM
Re: SQL 7 DB in suspect state
I got this result after tunning the sp_resetstatus:
Result:
Prior to updating sysdatabases entry for database 'SUMMARYDB', mode = 0 and status = 264 (status suspect_bit = 256).
For row in sysdatabases for database 'SUMMARYDB', the status bit 256 was forced off and mode was forced to 0.
Warning: You must recover this database prior to access.
I'll see if we have a recent backup.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2006 12:18 AM
тАО01-03-2006 12:18 AM
Re: SQL 7 DB in suspect state
Even if it doesn't work you can try following:
-Set the database property 'allow updates':
exec sp_configure 'allow updates', 1 RECONFIGURE WITH OVERRIDE
-Set the database to 'Emergency Mode':
UPDATE master..sysdatabases SET status=-32768 WHERE name='MyDBName'
-Rebuild the database log file:
dbcc rebuild_log ('myDBName','path to my log.LDF')
Warning: you will lost Transactional consistency after this operation
-Run DBCC CHECKDB
-Now you can execute sql statement vs your database and you can use DTS Wizard to export tables to another database.
And it always good to have recent DB backup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2006 07:21 PM
тАО03-14-2006 07:21 PM
Re: SQL 7 DB in suspect state
We finally had to create a new DB from scratch.
Tnks.