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
How will you fill the gridview by using datatable object at runtime?
Explain advantages of ado.net?
What is microsoft ado.net?
What are the ado.net components?
What is the executescalar method?
What does ado stand for?
Define table relations?
Do you use stored procedure in ado.net?
Define data access layer?
Explain the role of data provider in ado.net? What is the role of data provider in ado.net?
Explain the different row versions available in table?
What is openrowset?
Explain the dataadapter class in ado.net?
Which database is the ado.net sql connection object designed for?
What is the difference between oledb sql server and oledbdotnet provider?