I don't think you're going to find a command that will print out the data by giving a command to the database--think about it: the DB doesn't know about the printer connections the operating system has (all it cares about the OS for is disk access).
You may be able to find an application that will query the data, save it to a file, and then queue the file for printing, but I can't think of one off hand.
However, if you write a batch file to run ISQL against the DB and read the query from a file while saving the results to a file, the batch file can send the file to a printer and even, if desired, delete the file.
I think that's about the only way you'll be able to get what you want without stepping into the process manually to print the data.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.