Solved

SCHEDULE TASK

Posted on 1998-10-09
1
263 Views
Last Modified: 2010-08-05
The name of my executable file is "Auto PrintQueue.EXE"
(This program opens  MS Word Application and does Mailmerge for different documents & prints it to the printer and closes all the documents and ultimately closes Word application)
This program runs great if run it manually.
If I schedule the task to run in SQL server, the program execution starts but never closes MS word application and prints the results.
Any help is appreciated

Thanks
0
Comment
Question by:Sumana
1 Comment
 

Accepted Solution

by:
bamartino earned 50 total points
ID: 1090480
Open application with autoprintqueue.exe but inside Word create an autoexec macro to do the rest including closing Word.
You can run any application that supports autoexec macros/batches just using xp_cmdshell extended stored procedure.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to shrink a transaction log file down to a reasonable size.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question