Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 7,2000
»
Data Corruption
»
How to repair the table
30 posts, Page 1 of 3
1
2
3
»
»»
How to repair the table
Rate Topic
Display Mode
Topic Options
Author
Message
slizam
slizam
Posted Friday, July 27, 2012 7:51 AM
Grasshopper
Group: General Forum Members
Last Login: Thursday, October 04, 2012 10:49 PM
Points: 16,
Visits: 106
when i running this...
DBCC CHECKDB('PMSdb') WITH NO_INFOMSGS
Server: Msg 8966, Level 16, State 1, Line 1
Could not read and latch page (1:399112) with latch type SH. sysindexes failed.
and
DBCC CHECKTABLE ('sysindexes') WITH NO_INFOMSGS
Server: Msg 8966, Level 16, State 1, Line 1
Could not read and latch page (1:399112) with latch type SH. sysindexes failed.
Server: Msg 8909, Level 16, State 1, Line 1
Table error: Object ID 1735289202, index ID 26996, page ID (1:399112). The PageId in the page header = (8224:538976288).
CHECKTABLE found 0 allocation errors and 1 consistency errors in table '(Object ID 1735289202)' (object ID 1735289202).
repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKTABLE (PMSdb.dbo.sysindexes ).
what should i do after this? lets discuss it...
Post #1336517
John Mitchell-245523
John Mitchell-245523
Posted Friday, July 27, 2012 8:04 AM
SSCarpal Tunnel
Group: General Forum Members
Last Login: Today @ 8:44 AM
Points: 4,434,
Visits: 7,218
Back up the tail of your transaction log.
Restore your database from the most recent good backup, with NORECOVERY.
Restore the transaction logs up to the point immediately before the corruption occurred.
Recover the database.
Investigate the cause of the corruption and check that all your firmware and drivers for RAID and so on are up to date.
John
Post #1336530
slizam
slizam
Posted Friday, July 27, 2012 8:26 AM
Grasshopper
Group: General Forum Members
Last Login: Thursday, October 04, 2012 10:49 PM
Points: 16,
Visits: 106
Back up the tail of your transaction log...
is it this one?
BACKUP DATABASE [PMSdb]
TO DISK = N'D:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\PMSdb.bak'
WITH NOFORMAT, NOINIT, NAME = N'PMSdb-Full Database Backup',
SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO
but the result is...
Msg 3033, Level 16, State 0, Line 1
BACKUP DATABASE cannot be used on a database opened in emergency mode.
Msg 3013, Level 16, State 1, Line 1
BACKUP DATABASE is terminating abnormally.
from table sysdatabases, PMSdb status is 4194328 not 32768 (emergency mode)
Post #1336544
Hadrian
Hadrian
Posted Friday, July 27, 2012 8:36 AM
Ten Centuries
Group: General Forum Members
Last Login: Today @ 1:28 PM
Points: 1,156,
Visits: 2,195
backup log not backup database!
Post #1336550
Hadrian
Hadrian
Posted Friday, July 27, 2012 8:40 AM
Ten Centuries
Group: General Forum Members
Last Login: Today @ 1:28 PM
Points: 1,156,
Visits: 2,195
BACKUP LOG database_name TO <backup_device> [WITH { CONTINUE_AFTER_ERROR | NO_TRUNCATE }
Post #1336554
slizam
slizam
Posted Friday, July 27, 2012 9:29 AM
Grasshopper
Group: General Forum Members
Last Login: Thursday, October 04, 2012 10:49 PM
Points: 16,
Visits: 106
No truncate...
backup log PMSdb
to disk='D:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\PMSdb_Log.bak'
with NO_TRUNCATE
Server: Msg 3033, Level 16, State 1, Line 1
BACKUP DATABASE cannot be used on a database opened in emergency mode.
Server: Msg 3013, Level 16, State 1, Line 1
BACKUP LOG is terminating abnormally.
continue after error...
backup log PMSdb
to disk='D:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\PMSdb_Log.bak'
with CONTINUE_AFTER_ERROR
Server: Msg 155, Level 15, State 1, Line 3
'CONTINUE_AFTER_ERROR' is not a recognized BACKUP option.
Post #1336587
Lynn Pettis
Lynn Pettis
Posted Friday, July 27, 2012 9:39 AM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 4:20 PM
Points: 21,627,
Visits: 27,479
Try:
BACKUP LOG database_name TO <backup_device> WITH NO_RECOVERY
Based on what I read here:
http://msdn.microsoft.com/en-us/library/aa225964(v=sql.80)
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #1336600
slizam
slizam
Posted Friday, July 27, 2012 9:48 AM
Grasshopper
Group: General Forum Members
Last Login: Thursday, October 04, 2012 10:49 PM
Points: 16,
Visits: 106
backup log PMSdb
to disk='D:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\PMSdb_Log.bak'
WITH NO_RECOVERY
Msg 155, Level 15, State 1, Line 3
'NO_RECOVERY' is not a recognized BACKUP option.
Post #1336606
Hadrian
Hadrian
Posted Friday, July 27, 2012 9:51 AM
Ten Centuries
Group: General Forum Members
Last Login: Today @ 1:28 PM
Points: 1,156,
Visits: 2,195
which mssql version?
Post #1336609
slizam
slizam
Posted Friday, July 27, 2012 9:58 AM
Grasshopper
Group: General Forum Members
Last Login: Thursday, October 04, 2012 10:49 PM
Points: 16,
Visits: 106
mssql2000
Post #1336612
« Prev Topic
|
Next Topic »
30 posts, Page 1 of 3
1
2
3
»
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.