All you would need to do it create a SQL Server project, add a stored procedure class, write your printing code inside there, and then deploy it to the database.
You probably shouldn't be doing this though. Any CLR stored procedures or functions should abide by the same principles as the database, which is to not rely on any resources which may not be there. Communicating with a printer is prone to this type of problem as the network may be down, or the printer may be off or out of paper etc. Therefore it shouldn't really be a stored procedure.
Sunday, March 11, 2012
CLR Stored procedure
Can I create a CLR stored procedure in VB or C# to print a file. Please give the code sample
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment