Click to See Complete Forum and Search --> : Sql trigger to print


JustXtreme
04-13-2009, 08:32 AM
hello all,

i'm pretty new to sql and was wondering if it's possible to fire a print command from a sql trigger.

what i want:
I want to print the latest record inserted into a table to a printer when it's entered.:confused:

NogDog
04-13-2009, 06:39 PM
Off-hand I do not know of a way to do that. I would probably try to do it from within the application code instead of in the SQL.

chazzy
04-14-2009, 06:18 AM
you can. depends on your dbms. mysql uses something like


\! [command]


to execute. you'd use lpr to print stuff.