Gettting Results in text back from SQL Server

  • Hi

    I need to get in a c# program the same results that you get if you use SQL Query Analyzer. For example if you execute a stored procedure in the Query pane, and you set on the query menu Results in text, you get a combined result output of the Grid pane and the Message pane. Is there a way that I can set in a program to SQL server to do this type of results. At the moment I can get the message pane information back via the InfoMessage method of SqlConnection, But I need both the results.

     

    Kind Regards

    Leon  Steenkamp

  • If you are using ADO.Net, look into the dataset, SQLDataAdapter, SQLCommand and DataView classes.   

    Aunt Kathi Data Platform MVP
    Author of Expert T-SQL Window Functions
    Simple-Talk Editor

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply