dotConnect for MySQL Documentation
Devart.Common Namespace / DbScript Class / ScriptText Property

In This Topic
    ScriptText Property (DbScript)
    In This Topic
    Gets or sets script text.
    Syntax
    'Declaration
     
    Public Overridable Property ScriptText As String
    public virtual string ScriptText {get; set;}

    Property Value

    The text of the script. The default value is an empty string ("").
    Remarks

    When you assign value to ScriptText the following actions take place. First, if Statements property had been used before to obtain a SqlStatementCollection object, this collection gets cleared and no SqlStatement objects associated with obsolete script can be used. Second, DbScript positions itself on the first statement in the script, thus next invocation of ExecuteNext method will execute the first SQL statement regardless of whether it had been called before.

    Note that large scripts a better handled with Open method.

    See Also