How many commands does the oledbcommand takes?what are they?

Answer Posted / abhineet

System.Data.OleDb.OleDbCommand cmd = new
System.Data.OleDb.OleDbCommand();
cmd.ExecuteNonQuery()
cmd.ExecuteReader()
cmd.ExecuteScalar()

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe ado.net object model in detail.

753


What is ado oledb and odbc?

687


What is ado.net architecture?

680


Can we do database operations without using any of the ado.net objects?

764


What is ado recordset?

688


What is the difference between DataReader and DataSet in ADO.NET?

820


Is it possible to edit data in Repeater control?

695


What is the default Timeout for SqlCommand.CommandTimeout property?

738


Define connection string?

791


What is data relation?

687


What are two types of transaction supported by ado.net?

752


Do we use stored procedure in ADO.Net?

750


What is executequery?

695


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

802


Explain the advantage of ADO.Net?

746