dotConnect for Oracle Documentation
Devart.Common Namespace / DbScript Class / Open Method / Open(TextReader) Method
TextReader to read SQL statements from.

In This Topic
    Open(TextReader) Method
    In This Topic
    Prepares a StreamReader to be executed as SQL script.
    Syntax
    'Declaration
     
    Public Overloads Sub Open( _
       ByVal reader As TextReader _
    ) 
    public void Open( 
       TextReader reader
    )

    Parameters

    reader
    TextReader to read SQL statements from.
    Remarks

    Call to this method makes consequent invocation of Execute read SQL script from specified TextReader.

    This Open(String) method, as well as its overloads, does not load the text into memory or populate the Statements collection. So it is much more efficient to use Open(String) methods from performance and memory consumption points of view.

    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