Messages from stored procedure

G

Guest

Ho can I get the messages from a Stored Procedure (MS-SQLServer)

I do the follwing

Dim oCn As SqlConnection = Nothing '//--- Declare the SqlConnectio
oCn = New SqlConnection(Me.ConnectionString
oCn = Connect(

Dim oCmd As SqlCommand = New SqlCommand() '//--- Create a new SqlComman

oCmd .Connection = oC
oCmd .CommandText = sProcNam
oCmd .CommandType = CommandType.StoredProcedur

Dim oDA As SqlDataAdapter = New SqlDataAdapter() '//--- Create a new SqlDataAdapte

oDA.SelectCommand = oCm

And now, I would like to have the output of the stored procedure (the messages I see executing the Stored Procedure in the query analyzer)

How do I do that

your help is very much appreciated

Beat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top