Solved

How can I re-start my SQL Server 2005 Express Database Engine Service?

Posted on 2009-07-03
9
1,569 Views
Last Modified: 2012-05-07
I have installed SQL Server 2005 Express on a client's network.
Today I seem to be unable to logon to the database, either using my MS Access "project" application or the SQL Server Management Studio Express program.
When I use the SQL Server Surface Area Configuration program, I see that the SQLEXPRESS Database Engine has stopped even though the "Startup type" is set to "Automatic". When I click on the "Start" button a progess bar appears for about 10 seconds then I'm told the operation has timed out and I need to have administrator privileges to perform that action.

I am logged on to the hosting Server (running Windows Server 2003) using an "Administrator" logon from a Windows XP PC using a Remote Desktop connection. I used this method to install SQL Server on the server in the first place and up until now have been able to run the SQL Server Management Studio Express program to maintain the database.

Does anyone have any suggestions on how I can re-start my SQL Server Database Engine, and why I now appear to not be recognised as an Administrator?

Many thanks. Colin.
0
Comment
Question by:colinasad
  • 4
  • 2
  • 2
  • +1
9 Comments
 
LVL 31

Expert Comment

by:RiteshShah
ID: 24771568
what is your SQL Server service account?

generally you should be able to start service from control panel->administrative tools->services->SQL Server

if you are not able to do so than you MUST not have permission.
0
 
LVL 9

Expert Comment

by:Rahul Goel
ID: 24771588
Services.msc
 
Locate MSSQLExpress.....rightclick and restart
0
 
LVL 5

Expert Comment

by:boowhup
ID: 24771594
Check what account the service is trying to run as. If it's tryimg to Run as administrator then maybe the password has changed (you can check this where RiteshShah suggests). Otherwise check the event logs for a specific error and then do a search on it with google. Also check for other services related to MSSQL in the services tab under administrative services.
0
 

Author Comment

by:colinasad
ID: 24771840
Thanks for the prompt responses.

I again logged on to the main server using Remote Desktop and the "Administrator" logon (which I assume has administrator priviliges) and found the SQL Server "services" as suggested.

However I was still unable to re-start the SQL Server service.
The services relating to SQL Server that were listed are :

                                                         Status           Startup Type             Logon As
SQL Server (SQLEXPRESS)               (blank)           Automatic                  Local System
SQL Server Active Directory Helper  (blank)           Disabled                    Network Service
SQL Server Browser                         Started          Automatic                  Local System
SQL Server VSS Writer                     Started          Automatic                  Local System

When I tried to "Start" "(SQLEXPRESS)" I again had a brief "Service Control" progress bar then a failure message at the end, quoting "service-specific error code 3417" and suggesting I review the System Event Log. I assume this is what "boowhup" was suggesting but I don't know how to do this (let alone react to whatever it might reveal).

I had a look at the Active Directory Helper service but couldn't see an option to "enable" it.

I will try to contact the people who look after the server for my client to see if they can shed any light on the problem, but any further suggestions would be appreciated.

0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 

Author Comment

by:colinasad
ID: 24771944
I have now found an "Event Viewer" on the main server and have found a few error messages relating to SQLServer.

On 16th June :
Operating system error 23(Data error (cyclic redundancy check).) on file "d:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf" during CheckLogBlockReadComplete.

also :
Cannot recover the master database. SQL Server is unable to run. Restore master from a full backup, repair it, or rebuild it. For more information about how to rebuild the master database, see SQL Server Books Online.

Then no further events relating to SQL Server until today when there are whole list of them, presumably relationg to my multiple attempts to re-start the service.
(This is a "work in progress" and I have been away on holiday since the beginning of June. Things appear to have gone wrong on the 16th June and today is the first time it has been looked at since.)

It looks like there is corruption on the "master" database that needs to be fixed ... somehow.

Any suggestions in how to do this, given that the whole SQL Server service appears to have ground to a halt?
0
 

Author Comment

by:colinasad
ID: 24772493
I seem to be in a Catch 22.
It looks like my "master" database file "mastlog.ldf" is corrupted, or sitting on a corrupted area of hard disk. This seems to be preventing the SQL Server service from starting.

I can't even make a copy of this file for safe-keeping because I get a CRC error when I try (although I can rename it).

Any suggestions on how I can recover/repair this file without the SQL Server service running? Unfortunately I don't have a backup of the "master" database files.
0
 
LVL 31

Expert Comment

by:RiteshShah
ID: 24772525
0
 
LVL 5

Expert Comment

by:boowhup
ID: 24775052
Yep Ritesh is right. and failing that you can take a file copy of the mdf and ldf for your databases (whatever they are called). And do an uninstall/reinstall of SQL - but Ritesh's option might be faster.
0
 

Accepted Solution

by:
colinasad earned 0 total points
ID: 24779632
Thank you.
I tried the instruction in the article suggested by RiteshShah but it didn't work for me.
The article does say that the SQL Server instance should be running when you try the rebuild/repair of the master database, but the CRC error on my "mastlog.ldf" is preventing the SQL Server service from running at all.
The command suggested does do/attempt something for about 5 minutes but it gives no feedback at all, and does not indicate whether it thinks it succeeded or why it failed.
I think I will need to uninstall then re-install SQL Server on the client's server.
Luckily this is a system I was still developing and that my client was not actually using, but it is an early lesson in the importance of backing up the "system" databases as well as the "application" database.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL - sum months, quarter, YTD 9 91
Trigger for audit 26 70
How to "ASSIGN" a RecordID based on 1st character of a Field? 8 35
Grid querry results 41 72
by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

930 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now