Messages in ADO.NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to be able to execute a long-running stored procedure from a
Windows Forms application. The procedure loops through about 7,000 items,
calling various other procedures along the way, and progress is displayed in
SQL Query Analyzer using the Print command. It appears that Print events are
handled automatically within the application (I assume through the
InfoMessage event) and displayed as Message windows, which quickly causes an
error. Is there a way to suppress this automatic handling, or do I just have
to create an even handler of my own which does nothing?
 
Mike, One thing I would like to point out, is that if you dont have the
event handler for the InfoMessageEvent then nothing would happen. It looks
from the what your describing, is that there exists a
InfoMessageEventHandler in your code, that pops out message box for every
InfoMessage received.

HTH,
Sushil
 
I definitely don't have an explicit event handler, which is why I find this a
bit confusing.
 
Mike, Can you give more information on how your building your
application?(VS Designer/Code) If you are using code, can you share it?

-Sushil
 
Back
Top