Home All Groups Group Topic Archive Search About

Get SQL Printed Message Text w/ADO.NET

Author
19 Feb 2007 3:46 PM
Dan
Is there a way to get the printed messages from a SQL Script with ADO.NET?

Author
19 Feb 2007 5:14 PM
David Browne
"Dan" <D**@discussions.microsoft.com> wrote in message
news:4DD78282-6158-4CE7-B202-A655B419A5B6@microsoft.com...
> Is there a way to get the printed messages from a SQL Script with ADO.NET?

The InfoMessage event.

SqlConnection.InfoMessage Event
http://msdn2.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.infomessage.aspx

David

AddThis Social Bookmark Button