I'm writing a Visual C# .NET program and I need to get the results of a DBCC command into my program. When I run DBCC CONCURRENCYVIOLATION in SQL Server Management Studio, the string containing the info I need comes back in the 'Messages' pane but I need to be able to access it like I could with a SELECT statement.
I know how to set up the server/database connection in Visual Studio and can make some simple commands work into my program (such as this.sqlSelectCommand1.CommandText = "SELECT @@VERSION AS version"; ) but I'm a bit shaky with this stuff so far.
Anyone know how to solve the DBCC problem?
Thanks.
I know how to set up the server/database connection in Visual Studio and can make some simple commands work into my program (such as this.sqlSelectCommand1.CommandText = "SELECT @@VERSION AS version"; ) but I'm a bit shaky with this stuff so far.
Anyone know how to solve the DBCC problem?
Thanks.