SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL Server Agent can't start


SQL Server Agent can't start

Author
Message
agnnga
agnnga
Old Hand
Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)

Group: General Forum Members
Points: 309 Visits: 62
Hello,

I have these messages while trying to start the Agent. Knowing that a day before, it worked without any problems : all the tasks were well scheduled and executed.


- Message from Event viewer :
Type: Error
Source: SQLAGENT$C1TEST
Category: Service Control
Event ID: 103
Date: 07/08/2010
Time: 10:16:30 AM
User: N/A
Computer: MyServer

Description:
SQLServerAgent could not be started (Reason: Could not connect to server "MyServer". SQL ServerAgent could not be started).

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

- Message from Log viewer of Management Studio (log du sql aussi)

2007-03-15 09:40:02 - ! [298] SQLServer Error: 2, Named Pipes Provider: Could not open a connection to SQL Server [2]. [SQLSTATE 08001]
2007-03-15 09:40:02 - ! [165] ODBC Error: 0, Login timeout expired [SQLSTATE HYT00]
2007-03-15 09:40:02 - ! [298] SQLServer Error: 2, An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. [SQLSTATE 08001]
2007-03-15 09:40:02 - ! [000] Unable to connect to server '(local)'; SQLServerAgent cannot start
2007-03-15 09:40:07 - ! [298] SQLServer Error: 2, Named Pipes Provider: Could not open a connection to SQL Server [2]. [SQLSTATE 08001]
2007-03-15 09:40:07 - ! [165] ODBC Error: 0, Login timeout expired [SQLSTATE HYT00]
2007-03-15 09:40:07 - ! [298] SQLServer Error: 2, An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. [SQLSTATE 08001]


I tried to start it manually in SQL Server Management, still not working!

Do you have any idea please??? I've been searching for a solution for several days ...

Thank you very much in advance!
Adiga
Adiga
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: General Forum Members
Points: 12968 Visits: 21012
Try entering the actual instance name in "ServerHost" under

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10.MSSQLSERVER\SQLServerAgent

in registry.

Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
agnnga
agnnga
Old Hand
Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)

Group: General Forum Members
Points: 309 Visits: 62
Hello,

This might be a silly question but do you mind giving some more details please? (I'm kind of new in this ...)
Where can I find the registry that you talked about? And when I find it, I have to type this line "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10.MSSQLSERVER\SQLServerAgent" don't I?

Thank you again.
agnnga
agnnga
Old Hand
Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)

Group: General Forum Members
Points: 309 Visits: 62
ahhh, I found it. Thank you but it didn't work.
As the SQL server agent is on "off" status, when I tried to change it into "active", I've got a message from WMI provider "can't call a distant procedure".
Is it normal?

Thank you.
Carolyn Richardson
Carolyn Richardson
SSCarpal Tunnel
SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)

Group: General Forum Members
Points: 4553 Visits: 3589
Has the password been changed, look in SQL Server configuration manger and ensure the right password in stored. Another thing to look at is trying to start the service from the command prompt using:-

net start SQLSERVERAGENT

Facts are stubborn things, but statistics are more pliable - Mark Twain
Carolyn
SQLServerSpecialists
agnnga
agnnga
Old Hand
Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)

Group: General Forum Members
Points: 309 Visits: 62
Oh, Yes, actually, the password of my login to the server has been changed. Where can I find the password in stored? I was using "local system" for all the services so does it have any impacts?
I also tried another solution: I rechanged to the previous password. It seemed to work better (or not). But " SQL Server Agent started and stopped because it had no task to do, for example Alert Services or Performance Log" - message sent by Computer Management when I tried to start the agent.
Otherwise, does the fact that I have 2 instances on the server have anything to do with this?

Thank you.
Adiga
Adiga
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: General Forum Members
Points: 12968 Visits: 21012
The SQLAGENT.out file should have more details as to why it failed. This file is usually located at

[Installation Drive]\Microsoft SQL Server\MSSQL.1\MSSQL\LOG



Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
agnnga
agnnga
Old Hand
Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)

Group: General Forum Members
Points: 309 Visits: 62
The details are also what you could see from above, in the paragraph of Log viewer of Management Studio. (It's actually the same message)
Rick.Cornell.SME
Rick.Cornell.SME
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6753 Visits: 208
Also the value of the key should be the exact name of the instance!

Get that value by doing a SELECT @@servername!
agnnga
agnnga
Old Hand
Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)

Group: General Forum Members
Points: 309 Visits: 62
Problem solved!!!

In conclusion, I modified the serverhost name in HKEY like Adiga and Twinsoft SME said and also made sure that the password in SQL Configuration Manager is correct as Carolyn Richardson suggested.

Thank you very much for your help. :-)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum







































































































































































SQLServerCentral


Search