How to run sql from a .net application against sqlserver and get output like with SQL Management Stu

Posted by Rory on Stack Overflow See other posts from Stack Overflow or by Rory
Published on 2010-04-20T13:21:09Z Indexed on 2010/04/20 13:23 UTC
Read the original article Hit count: 244

I'd like my app to run sql files and receive the results output as if the sql was run from SQL Management Studio with results to text. i.e. nicely formatted recordsets, printed messages, rows affected, errors, running multiple batches separated by GO statements, etc. Any suggestions how to do this without building it from scratch on top of a normal SQL connection?

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about sql-server-2005