CreateDatabaseStatement CreateDatabaseStatement CreateDatabaseStatement Class

Definition

Represents the CREATE DATABASE statement.

public ref class CreateDatabaseStatement : Microsoft::SqlServer::TransactSql::ScriptDom::TSqlStatement
public class CreateDatabaseStatement : Microsoft.SqlServer.TransactSql.ScriptDom.TSqlStatement
Public Class CreateDatabaseStatement
Inherits TSqlStatement
Inheritance
CreateDatabaseStatementCreateDatabaseStatementCreateDatabaseStatement

Constructors

CreateDatabaseStatement() CreateDatabaseStatement() CreateDatabaseStatement()

Initializes a new instance of the CreateDatabaseStatement class.

Properties

AttachMode AttachMode AttachMode

Gets or sets the attach mode.

Collation Collation Collation

Gets or sets the collation name.

Containment Containment Containment

Gets or sets the containment database option.

CopyOf CopyOf CopyOf

Gets or sets the name of source server and source database for the CopyOf option.

DatabaseName DatabaseName DatabaseName

Gets or sets the name of the database that is being created.

DatabaseSnapshot DatabaseSnapshot DatabaseSnapshot

Gets or sets the database snapshot name.

FileGroups FileGroups FileGroups

Gets or sets a list of Filegroups (including primary one) from LOG ON clause.

FirstTokenIndex FirstTokenIndex FirstTokenIndex

Gets or sets the first token index.

(Inherited from TSqlFragment)
FragmentLength FragmentLength FragmentLength

Gets the fragment length.

(Inherited from TSqlFragment)
LastTokenIndex LastTokenIndex LastTokenIndex

Gets or sets the last token index.

(Inherited from TSqlFragment)
LogOn LogOn LogOn

Gets a list of log on file declarations.

Options Options Options

Gets or sets the database Options for Create Database.

ScriptTokenStream ScriptTokenStream ScriptTokenStream

Gets or sets a list of token streams.

(Inherited from TSqlFragment)
StartColumn StartColumn StartColumn

Gets the starting column.

(Inherited from TSqlFragment)
StartLine StartLine StartLine

Gets the starting line.

(Inherited from TSqlFragment)
StartOffset StartOffset StartOffset

Gets the fragment start offset value.

(Inherited from TSqlFragment)

Methods

Accept(TSqlFragmentVisitor) Accept(TSqlFragmentVisitor) Accept(TSqlFragmentVisitor)

Accepts a visit from the specified visitor.

AcceptChildren(TSqlFragmentVisitor) AcceptChildren(TSqlFragmentVisitor) AcceptChildren(TSqlFragmentVisitor)

Accepts a visit for the Children from the specified visitor.

Fields

Uninitialized Uninitialized Uninitialized

Value is -1.

(Inherited from TSqlFragment)

Applies to