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


The statement for which the command should be created.
Returns a SQL Server command for the specified statement.
Syntax
'Declaration
 
Public Overloads Function GetCommand( _
   ByVal statement As System.String _
) As System.Data.SqlClient.SqlCommand
public System.Data.SqlClient.SqlCommand GetCommand( 
   System.string statement
)
public: System.Data.SqlClient.SqlCommand* GetCommand( 
   System.string* statement
) 

Parameters

statement
The statement for which the command should be created.

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