mania_comp -2 Light Poster

Hi Guys,

I am doing a simple backup of sql server database through VB.NET form. It gets executed well but I want to display details of successful query execution in a label (i.e. time taken, database size etc.)

The message which I want to display in label is like
"Processed 296 pages for database 'aaa', file 'aaa' on file 1.
Processed 1 pages for database 'aaa', file 'aaa_log' on file 1.
BACKUP DATABASE successfully processed 297 pages in 0.522 seconds (4.660 MB/sec).
"

This result we get in sql server query window when we execute backup query there. I want this message in VB.NET
Help me out pls.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.