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 |
vaddi
Posting Yak Master
145 Posts |
Posted - 2006-08-08 : 11:47:54
|
HelloCan anyone let me know the script to check whether the sql server agent is running or not.Thanks |
|
Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)
7020 Posts |
Posted - 2006-08-08 : 12:17:11
|
[code]-- In SQL 2000if exists(select *from master.dbo.sysprocesseswhere program_name like 'SQLAgent - %') begin print 'SQL Agent running' endelse begin print 'SQL Agent NOT running' end[/code]CODO ERGO SUM |
 |
|
|
|
|