Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2009-07-03
9
Medium Priority
?
1,606 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
[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
  • 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article will describe one method to parse a delimited string into a table of data.   Why would I do that you ask?  Let's say that you need to pass multiple parameters into a stored procedure to search for.  For our sake, we'll say that we wa…
Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

636 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