?
Solved

SQL Service will not start... please help

Posted on 2001-08-08
9
Medium Priority
?
1,931 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
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
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 450 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Suggested Courses

752 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