var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
I am trying to print a text file "C:\temp.txt" from Query Analyzer
using the following code
EXEC xp_cmdshell "print c:\temp.txt", NO_OUTPUT
When i executed it is not printing the text file
There is a default printer on the machine SQL server is running .
can somebody help me out
Try opening a command window and running
That's what xp_cmdshell will do.
You will need a printer that has dos drivers and a type command redirected to the printer to do it this way.
True, NO_OUTPUT - Is an optional parameter executing the given command_string, and does not return any output to the client.