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 connection pooling ?

3 Answers   Vertex,


What is the difference in an abstract class and an interface?

0 Answers  


What is variable view?

0 Answers  


What is the use of sqldatareader class?

0 Answers  


What is microsoft ado?

0 Answers  


What is the hierarchy of data in databases?

0 Answers  


can we change the data in dataset? if yes what is the process?

1 Answers   Artech,


Explain acid properties?

4 Answers  


How to store data in memory?

0 Answers  


What is the advantage of ado.net?

0 Answers  


Do you use stored procedure in ado.net?

0 Answers  


How do you filter the data in datagrid?

2 Answers   Apps Lab, Choice Solutions,


Categories