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

In This Topic
    SqlScript Constructor(TextReader,SqlConnection)
    In This Topic
    Initializes a new instance of the SqlScript class with a TextReader object to get SQL statements from and a SqlConnection object.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal reader As TextReader, _
       ByVal connection As SqlConnection _
    )
    public SqlScript( 
       TextReader reader,
       SqlConnection connection
    )

    Parameters

    reader
    A TextReader object that contains the script text.
    connection
    A SqlConnection object that represents the connection to a database.
    See Also