what are the two key events for the sql connection class?
explain the differnce between the two.

Answers were Sorted based on User's Feedback



what are the two key events for the sql connection class? explain the differnce between the two...

Answer / srikanth r

The two key events are InfoMessage and StateChange events.

InfoMessage event occurs when informational message is
returned from data source that do not results in throwing
an exception.
StateChange event occurs when there is a change in
Connection to the data source.

Is This Answer Correct ?    23 Yes 1 No

what are the two key events for the sql connection class? explain the differnce between the two...

Answer / annie

The two key event of sqlConnection class are:
StateChange event:Occurs only when the state of the connection with the database changes. The evnthandler receives an argument of type StateChangeEventArgs. This argument contains data related to that perticular event.
The properties of this event are: CurrentState and OriginalState.
InfoMessage event: Occurs only when an informational message returned from the database having connection with. The event handler receives an argument of type SqlInfoMessageEventArgs. This argument contains the data related to that particular event.
The properties of this event are: Error,Message and Source.

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More ADO.NET Interview Questions

What is Dataset Object?

0 Answers  


What is a control toolbox?

0 Answers  


What is the difference between Response.Expires and Reponse.ExpiresAbsolute?

0 Answers  


What are all the different authentication techniques used to connect to MS SQL Server?

0 Answers  


Differnce between Stored procedure and user defined functions?

17 Answers   Microsoft, Symphony,






What is ole db and odbc?

0 Answers  


What are the difference between readonly vs. Const?

0 Answers  


What you mean by filtering of data?

0 Answers  


What are the different row versions available in table?

0 Answers  


What are different types of Commands available with DataAdapter ?

1 Answers   Arigo Infotech,


make a login control??

1 Answers  


What is ole in excel?

0 Answers  


Categories