Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Getting back SQL output in .Net application

Author  Topic 

arundkulk
Starting Member

4 Posts

Posted - 2004-08-18 : 15:40:35
I include PRINT statements in the stored procedures. These help to debug them. Executing stored procedures in the Query Analyzer enable to view the output of these PRINT statements in the results pane. Is there any way to get this output back in an application using ADO.Net?

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-08-18 : 18:12:50
uhhhh, have you thought about using the debugger in VisualStudio.NET?

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

byrmol
Shed Building SQL Farmer

1591 Posts

Posted - 2004-08-18 : 18:21:19
You will need to hook up the information event. Works like a treat but performance suffers..

DavidM

"Always pre-heat the oven"
Go to Top of Page

arundkulk
Starting Member

4 Posts

Posted - 2004-08-19 : 09:57:34
Can yo be little more specific. I did not understand.
quote:
Originally posted by byrmol

You will need to hook up the information event. Works like a treat but performance suffers..

DavidM

"Always pre-heat the oven"

Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2004-08-19 : 10:03:05
i think you should read this site. it may help:
http://support.microsoft.com/default.aspx?kbid=316549


Go with the flow & have fun! Else fight the flow :)
Go to Top of Page

mohdowais
Sheikh of Yak Knowledge

1456 Posts

Posted - 2004-08-20 : 12:05:20
This is what David was talking about: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatasqlclientsqlconnectionclassinfomessagetopic.asp

OS
Go to Top of Page

arundkulk
Starting Member

4 Posts

Posted - 2004-08-20 : 14:50:27
Thanks, It works great!

quote:
Originally posted by mohdowais

This is what David was talking about: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatasqlclientsqlconnectionclassinfomessagetopic.asp

OS

Go to Top of Page

arundkulk
Starting Member

4 Posts

Posted - 2004-08-20 : 14:51:06
Thanks, It worked out great!
quote:
Originally posted by byrmol

You will need to hook up the information event. Works like a treat but performance suffers..

DavidM

"Always pre-heat the oven"

Go to Top of Page
   

- Advertisement -