| |
|
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
da.SelectCommand = New SqlCommand( )
With da.SelectCommand
.Connection = objConnection
.CommandText = "select * from employees"
End With
ADO.NET
Connection Object
Command Object
SelectCommand
SqlCommandBuilder
DataView
DataRelation
Diffgram
Typed DataSet
Call Stored Procedure
More Interview Questions...
| |