Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2006-08-30 : 11:19:55
|
| Amit writes "I have a requirement in a project where in, whenever a record gets inserted in a database, a document is printed as a slip.Since the application is attached to a card reader therefore there is no chance of using a UI to press a button and print.When I execute the PRINT statement from the command prompt, network printer prints but when I try to execute the same dos PRINT statement using xp_cmdShell command I recieve this error :<u>"Unable to initialize device"</u>. Please help!" |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2006-08-30 : 11:46:25
|
| Try logging on to the server using sql server service profile and see what the print statement does.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
Srinika
Master Smack Fu Yak Hacker
1378 Posts |
Posted - 2006-08-30 : 12:00:33
|
| >> When I execute the PRINT statement from the command prompt...Is it from the server or client machine ?(chk whether both server / client can do the same)Where do u have xp_cmdShell .... ? In a trigger ? A stored Proc ?Srinika |
 |
|
|
|
|
|