Got more questions? Find advice on: SQL | XML | Regular Expressions | Windows
in Search
Welcome to AspAdvice Sign in | Join | Help

Browse by Tags

All Tags » sql server » C#
  • Execute sqlcmd (oSql) from .NET and capture the output

    I have recently seen quite a few questions about executing sqlcmd (oSql for those on 2000) from .NET code.  I have a bunch of utilities that i have written that do this and thought I would share the basic code to do it. You can also easily capture the output as a stream and do whatever you want with it. In the example below I dump it to a ...
    Posted to The Stark Zone (Weblog) by gstark on September 14, 2006