Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get messages printed by MSSQL Print Command in C#?

Status
Not open for further replies.

alfer

Programmer
Jun 12, 2003
41
0
0
PL
Hi

I Would like to call a stored procedure from MS SQL 2000. That procedure generates a report using the print command and using select command. Usually it was run from SQL Query analizer with results in text, and then pasted into clipboard and next into word and so on.
My task is now to get this procedure from Query Analizer into C# code. I have no idea, how to read those printed by sql (with PRINT command) messages.
All my Handbooks show how to get results returned as table.

Could You tell me how to get those printed from mssql messages?

thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top