Solved

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

Posted on 2009-07-03
9
1,571 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 ITIL
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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 

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
 

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

I've encountered valid database schemas that do not have a primary key.  For example, I use LogParser from Microsoft to push IIS logs into a SQL database table for processing and analysis.  However, occasionally due to user error or a scheduled task…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

813 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

14 Experts available now in Live!

Get 1:1 Help Now