What is SelectCommand in ADO.NET?
Select Command Property - This property is used to hold the SQL command that
is used to retrieve data from the data source. The CommandText and Connection are
properties of the Select Command propety. CommandType is also a property of Select
Command. See example below...
Dim da as new SqlDataAdapter
Call Stored Procedure
da.SelectCommand = New SqlCommand( )
.Connection = objConnection
.CommandText = "select * from employees"
More Interview Questions...