Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: DBCC CheckDb - get sql messages in VB.NET

zack raiyan:

I am using this code to check my database for errors :


Dim cmd As New SqlCommand("DBCC CHECKDB (offpoDb) WITH TABLERESULTS", con)
cmd.ExecuteNonQuery()

But,u see, this command only generates SQL messages.Is there any way to retrieve the messages in .net ? Can i show the messages in a messagebox ? I've studied InfoMessage but i still fail to understand how to apply it/work with it ?



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: DBCC CheckDb - get sql messages in VB.NET

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×