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 is difference between ado and other data object?
what is the difference betwen typed dataset and untyped dataset?in general which dataset can we use in programming?
What is the difference between DataReader and DataSet in ADO.NET?
Explain how do you connect to sql server database without using sqlclient?
What is the difference between ado.net and entity framework?
What is ado.net architecture?
What is ado recordset?
What is dbcontext and dbset in entity framework?
What are the advantages and disadvantages of using datalist?
Describe briefly an ADO.NET Dataset ?
Some important instruction regarding ADO.NET connection string ?
Which is faster entity framework or ado.net?
Does sqlclient and oledb class share the same functionality?
Define table relations?
What is the purpose of using adodb?