dotConnect for DB2 Documentation
Devart.Data.DB2 Namespace / DB2Script Class / DB2Script Constructor / DB2Script Constructor(TextReader,DB2Connection)
A TextReader object that contains the script text.
A DB2Connection object that represents the connection to a database.

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

    Parameters

    reader
    A TextReader object that contains the script text.
    connection
    A DB2Connection 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