dotConnect for SQL Server Documentation
Devart.Data.SqlServer Namespace / SqlScript Class / SqlScript Constructor / SqlScript Constructor(String,SqlConnection)
The text of the query.
A SqlConnection object that represents the connection to a database.

In This Topic
    SqlScript Constructor(String,SqlConnection)
    In This Topic
    Initializes a new instance of the SqlScript class with the text of the query and a SqlConnection object.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal scriptText As String, _
       ByVal connection As SqlConnection _
    )
    public SqlScript( 
       string scriptText,
       SqlConnection connection
    )

    Parameters

    scriptText
    The text of the query.
    connection
    A SqlConnection object that represents the connection to a database.
    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