Send feedback on this topic.
Teradata.Client.Provider
TdCommand Constructor(String,TdConnection)



Teradata.Client.Provider Namespace > TdCommand Class > TdCommand Constructor : TdCommand Constructor(String,TdConnection)
The SQL text that will be executed. commandTextused to initialize the CommandText property.
An instance of the TdConnection class that is used to execute SQL requests. connection is used to initialize the Connection property.
Initializes a new instance of the TdCommand class.
Syntax
'Declaration
 
Public Function New( _
   ByVal commandText As String, _
   ByVal connection As TdConnection _
)
'Usage
 
Dim commandText As String
Dim connection As TdConnection
 
Dim instance As New TdCommand(commandText, connection)
public TdCommand( 
   string commandText,
   TdConnection connection
)
public:
TdCommand( 
   String^ commandText,
   TdConnection^ connection
)

Parameters

commandText
The SQL text that will be executed. commandTextused to initialize the CommandText property.
connection
An instance of the TdConnection class that is used to execute SQL requests. connection is used to initialize the Connection property.
Remarks
Property Initial Value
CommandText commandText parameter
CommandTimeout 30 seconds
CommandType Text
Connection connection parameter
DesignTimeVisible False
Transaction Null
UpdatedRowSource Both
Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdCommand Class
TdCommand Members
Overload List