Solved

SCHEDULE TASK

Posted on 1998-10-09
1
256 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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

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.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

705 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now