|
|
Question : How to run a GUI based application from SQL server Task Scheduler
|
|
We have Written a VB MAPI mail program which internally invokes underlying MAPI complaint e-mail system(example -netscape)to send e-mails.An executable has been created from this program.This executable runs without any problems when invoked directly from windows NT explorer and sends e-mails by using netscape.
But when the same vbmail executable is tried to run from MS sql server task scheduler, by setting the following options in the task scheduler screen.
Type : cmdexec and providing all other required details like path,duration for sending mails etc it does not invoke netscape for sending mails.
But when we view NT task manager,it shows both the netscape.exe(underlying messaging system used) and vbmail.exe(our mail program) running.
Can you please tell us how to run an application which has some GUI interface from task scheduler.
|
Answer : How to run a GUI based application from SQL server Task Scheduler
|
|
master..xp_cmdshell that is your only way.
|
|
|
|
|