what are the two key events for the sql connection class?
explain the differnce between the two.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I retrieve two tables of data at a time by using data reader?

695


Which is the feature of ado.net?

721


Give an example that shows how to execute a stored procedure in ado.net?

767


What is meant by ‘transaction’ in a database and what are the ‘properties of transaction’?

738


Define data adapter?

677


What are the disadvantages of using datalist?

683


How to generate a single aggregate?

718


What are the data providers in ADO.NET framework?

762


What providers does Ado.net uses?

748


Give an example of a .net application which connects to microsoft access database using ado.net classes.

781


What is difference between entity framework and ado.net?

667


What is the difference between executequery and executenonquery?

687


Define Execute Scalar?

731


Explain how to create dynamic gridview?

686


Can datareader hold data from multiple tables?

845