DB2Command Constructor(String)
Initializes a new instance of the
DB2Command class with the text of the query.
The following example creates a
DB2Command and sets some of its properties.
|
|---|
public void CreateDB2Command()
{
string mySelectQuery = "SELECT * FROM Dept";
DB2Command db2Command = new DB2Command(mySelectQuery);
db2Command.FetchSize = 100;
} |
|
|---|
Public Sub CreateDB2Command()
Dim mySelectQuery As String = "SELECT * FROM Dept"
Dim db2Command As New DB2Command(mySelectQuery)
db2Command.FetchSize = 100
End Sub |