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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 master.dbo.xp_cmdshell help please

Author  Topic 

Nicademas
Starting Member

10 Posts

Posted - 2009-06-12 : 17:58:32
Hi all..


On ss 2008, is master.dbo.xp_cmdshell the best way to launch a c# .net 2.0 console app I have written that needs to run about every 30 min?

Thanks!
Nic

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2009-06-12 : 19:44:55
Since you want it to run every 30 mins, why not schedule it using the OS scheduler or SQL Agent


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

senthil_nagore
Master Smack Fu Yak Hacker

1007 Posts

Posted - 2009-06-13 : 02:24:09
Better you use OS Scheduler!


Senthil.C
------------------------------------------------------
[Microsoft][ODBC SQL Server Driver]Operation canceled
Go to Top of Page

Nicademas
Starting Member

10 Posts

Posted - 2009-06-15 : 14:06:20
Thanks for the responses.

I do intend to run the command from SQL Agent. But is this the best method of launching it from SQL Server, using a domain account? I will not use the Windows Scheduler.

Thanks.
Nic
Go to Top of Page
   

- Advertisement -