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 the difference between Dataset. clone and Dataset.copy?
What are the data providers used in ado.net
What is sqldatareader?
What is ado.net connection?
Differentiate between Dataset and Recordset.
Explain what a diffgram is and its usage ?
What is the difference between a Dataset and DataReader? Can dataReader hold data from multiple tables?
3 Answers Fulcrum Logic, Merrill Lynch,
What are the uses of Stored Procedure?
What do you know about ADO.NET's objects and methods?
What is ado.net architecture?
What is difference between datagridview and datagrid control in winforms?
what is the difference betwen typed dataset and untyped dataset?in general which dataset can we use in programming?