xSQL.Schema.SqlServer Namespace > SqlConnectionManager Class > GetCommand Method : GetCommand(String,SqlTransaction) Method |
'Declaration Public Overloads Function GetCommand( _ ByVal statement As System.String, _ ByVal transaction As System.Data.SqlClient.SqlTransaction _ ) As System.Data.SqlClient.SqlCommand
public System.Data.SqlClient.SqlCommand GetCommand( System.string statement, System.Data.SqlClient.SqlTransaction transaction )
public: System.Data.SqlClient.SqlCommand* GetCommand( System.string* statement, System.Data.SqlClient.SqlTransaction* transaction )
Exception | Description |
---|---|
System.ArgumentNullException | The statement parameter is null |
System.ArgumentException | The statement parameter is an empty string |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2