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
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 |
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 |
what is connection pooling ?
What is the difference in an abstract class and an interface?
What is variable view?
What is the use of sqldatareader class?
What is microsoft ado?
What is the hierarchy of data in databases?
can we change the data in dataset? if yes what is the process?
Explain acid properties?
How to store data in memory?
What is the advantage of ado.net?
Do you use stored procedure in ado.net?
How do you filter the data in datagrid?
2 Answers Apps Lab, Choice Solutions,