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 |
|
BobFord
Starting Member
2 Posts |
Posted - 2004-11-07 : 21:04:21
|
| I can currently obtain a list of Windows Service applications that are running on the current SQLServer computer by using the following:CREATE TABLE #tmpServicesList (ServiceName VARCHAR(255))INSERT INTO #tmpServicesListEXEC master.dbo.xp_cmdshell 'Net Start'if exists(select ServiceName from #tmpServicesList where ServiceName like '%Task Scheduler%')beginprint 'Task Scheduler is running'end elsebeginprint 'Task Scheduler is not running'endselect * from #tmpServicesListdrop table #tmpServicesListHowever, I would like to be able to list the Services that are running on another computer in the same Domain that does not have SQLServer installed. The SQL will in a stored procedure that is called from time to time.Any suggestions/examples would be appreciated...CheersBob |
|
|
Kristen
Test
22859 Posts |
Posted - 2004-11-08 : 02:08:45
|
| There may be better ideas, but I think I would run a BATCH file on the other computer that does the NET START thingie, and outputs the results to a file - into a shared folder; schedule that (windows scheduler), and pull that results file into SQLKristen |
 |
|
|
|
|
|