xSQL Schema Compare SDK for SQL Server version 12
GetCommand(String,SqlTransaction) Method


The statement for which the command should be created.
The command transaction.
Returns a SQL Server command for the specified statement and with the specified transaction.
Syntax
'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
) 

Parameters

statement
The statement for which the command should be created.
transaction
The command transaction.

Return Value

A System.Data.SqlClient.SqlCommand object.
Exceptions
ExceptionDescription
System.ArgumentNullException

The statement parameter is null

System.ArgumentException

The statement parameter is an empty string

Requirements

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

See Also

Reference

SqlConnectionManager Class
SqlConnectionManager Members
Overload List

 

 


©Copyright 2022 xSQL Software. All Rights Reserved.

Send Feedback