Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
khusiie
Yak Posting Veteran
78 Posts |
Posted - 2008-02-04 : 09:47:38
|
| Hi,can anybody tell me how do i check sql server agent is enable and running properly...i can manually run job..but when i m trying to run job automatically..it doesn't run..so can anybody help me plz..i have never try to run job before so plz..help..thanks.. |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-02-04 : 09:52:14
|
| Might be of help:-http://www.microsoft.com/technet/abouttn/flash/tips/tips_060804.mspx |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2008-02-04 : 10:01:31
|
You need this?EXEC master.dbo.xp_ServiceControl 'QUERYSTATE', 'SQLServerAgent' E 12°55'05.25"N 56°04'39.16" |
 |
|
|
khusiie
Yak Posting Veteran
78 Posts |
Posted - 2008-02-04 : 10:06:03
|
quote: Originally posted by Peso You need this?EXEC master.dbo.xp_ServiceControl 'QUERYSTATE', 'SQLServerAgent' E 12°55'05.25"N 56°04'39.16"
it gives me error like this:The EXECUTE permission was denied on the object 'xp_servicecontrol', database 'mssqlsystemresource', schema 'sys'. |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2008-02-04 : 10:22:13
|
http://msdn2.microsoft.com/en-us/library/ms685981.aspxAnd grant EXECUTE for the user in mind to run xp_ServiceControl.And try without owner like thisEXEC master..xp_ServiceControl 'QUERYSTATE', 'SQLServerAgent'or with the sys schemaEXEC master.sys.xp_ServiceControl 'QUERYSTATE', 'SQLServerAgent' E 12°55'05.25"N 56°04'39.16" |
 |
|
|
|
|
|