Solved

SQL Service will not start... please help

Posted on 2001-08-08
9
1,895 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
  • 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server Trigger 8 32
Return Rows as per Quantity of Columns Value In SQL 6 26
SQL- GROUP BY 4 21
access to sql migration 5 19
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

680 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