Solved

SQL Service will not start... please help

Posted on 2001-08-08
9
1,912 Views
Last Modified: 2012-05-04
All was runnning fine, then... I get this sort of thing happening in the error logs:

[... snip ...]
2001-08-08 09:46:33.18 kernel   SQL Server Assertion: File: <recovery.c>, line=2693
Failed Assertion = 'seenCkptEnd'.
2001-08-08 09:46:33.18 spid1    Location:      recovery.c:2693
Expression:      seenCkptEnd
SPID:           1
Process ID:      193
2001-08-08 09:46:33.27 spid1    Error: 3624, Severity: 20, State: 1.
2001-08-08 09:46:33.34 spid1    Error: 9004, Severity: 23, State: 5.
2001-08-08 09:46:33.37 spid1    Cannot recover the master database. Exiting.
[... snip ...]

I cannot connect to the SQL server at all because I can't start the service. I don't know what the best step is: I have tried checking authentication (I use Windows NT authentication on the DBs) but this appears to be all good.

Any help much appreciated.
0
Comment
Question by:fruey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
  • 2
9 Comments
 
LVL 18

Expert Comment

by:nigelrivett
ID: 6363482
Looks like you need to rebuild the master database the restore it from a backup.
0
 
LVL 4

Author Comment

by:fruey
ID: 6363492
Arrrgh... I don't have a backup. At least not of the master db. I know that's dumb.

So... if I rebuild the master, I lose all my dbs right? I have the old data (.mdf) files. Anything I can do to get these back?

Cheers again
0
 
LVL 4

Author Comment

by:fruey
ID: 6363498
Arrrgh... I don't have a backup. At least not of the master db. I know that's dumb.

So... if I rebuild the master, I lose all my dbs right? I have the old data (.mdf) files. Anything I can do to get these back?

Cheers again
0
Get Actionable Data from Your Monitoring Solution

Your communication platform is only as good as the relevance of the information you send. Ensure your alerts get to the right people every time with actionable responses. Create escalation rules that ensure everyone follows the process and nothing is left to chance.

 
LVL 18

Expert Comment

by:nigelrivett
ID: 6363626
After the rebuild you can restore databases from backups or attach them using sp_attach_db or sp_attach_single_file_db.

I would try restoring them on another server first though to see what you get.
At least make sure you have a copy of everything on the disc.
0
 
LVL 4

Author Comment

by:fruey
ID: 6363682
OK... I don't have backups of all of the databases, so what you're saying is that using sp_attach_db I can get at the old .mdf files.

Confirm that this is the case and give me a bit of info on how to do sp_attach_db and the points are yours.

Thanks
0
 
LVL 4

Expert Comment

by:TheSpirit
ID: 6363959
The use of sp_attach_db is as follows (taken from BOL)

This example attaches two files from pubs to the current server.

EXEC sp_attach_db @dbname = N'pubs',
    @filename1 = N'c:\mssql7\data\pubs.mdf',
    @filename2 = N'c:\mssql7\data\pubs_log.ldf'

You should make copies of the MDF and LDF files before you do anything at all. As nigelrivett said you should really attach these files to another server and run dbcc checkdb (but put the databases into single user mode first) I don't know what causes the error you have but it must have been quite dramatic !




0
 
LVL 4

Author Comment

by:fruey
ID: 6364137
Well I don't know what caused the error myself... maybe the log file getting too big and some trucation error it seems.

I assume I have to use the Query tool to do the updates. Couple things:

What is the "N" for in the statements you gave?

How do I switch to single user?

I don't have another server which isn't a production server, and since the server with problems is completely broken I might as well do it on that. I have backups of the mdf /ldf files elsewhere so I can't go too wrong. Worst case scenario I'll re-install SQL 7 anyways.

If you can go the extra mile by answering the above, TheSpirit, then I'll give you the points. Otherwise I'll have to work out how to split the points since nigelrivett was there with the answer, just not the backup commands, already...
0
 
LVL 4

Accepted Solution

by:
TheSpirit earned 150 total points
ID: 6364294
Yes the sp_attach_db is run from Query Analyser

I think the N specifies unicode (you could probably omit it with no ill effects). Putting a database into single user mode is fairly easy, right click on the database in SEM and the properties then options screen has it as a checkbox. Putting the database into single user mode may not be necessary if no users are connecting, I always do it because if you run a dbcc checkdb and users are in there doing things phantom errors can be reported (and that always gives me the willies)
0
 
LVL 4

Author Comment

by:fruey
ID: 6364754
I had to reinstall the whole SQL in the end, since the query analyzer was broken.

The reason for the crash remains to be seen but I have strong suspicions that somewhere a tweak on the maintenance and 'allow to grow' properties was way out.

I'm sorry to the other user who replied quickly to start off with, I guess rebuilding and/or reinstalling were the procedures needed and you were right there; however, Spirit went that bit further and managed to respond quickly for me when I was getting into the nitty gritty.

So kudos to nigel and Points to Spirit. Cheers
0

Featured Post

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question