what are the two key events for the sql connection class?
explain the differnce between the two.
Answer Posted / 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 View All Answers
What are the different row versions available in table?
What are the disadvantages of using datalist?
What is acid in ado.net?
How can we add/remove row's in "datatable" object of "dataset"?
Which database is the ado.net sql connection object designed for?
What is ado object model?
What is difference between executequery and executeupdate?
What does ado stand for in ado.net?
What are the various methods provided by the DataSet object to generate XML?
Does entity framework use ado.net?
How to aggregating data across related tables?
What is ado in agriculture?
What is an ado connection?
Is ado.net an orm?
What is ado asp?