Класс CreateDatabaseStatement

Represents the CREATE DATABASE statement.

Иерархия наследования

System.Object
  Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment
    Microsoft.SqlServer.TransactSql.ScriptDom.TSqlStatement
      Microsoft.SqlServer.TransactSql.ScriptDom.CreateDatabaseStatement

Пространство имен:  Microsoft.SqlServer.TransactSql.ScriptDom
Сборка:  Microsoft.SqlServer.TransactSql.ScriptDom (в Microsoft.SqlServer.TransactSql.ScriptDom.dll)

Синтаксис

'Декларация
<SerializableAttribute> _
Public Class CreateDatabaseStatement _
    Inherits TSqlStatement
'Применение
Dim instance As CreateDatabaseStatement
[SerializableAttribute]
public class CreateDatabaseStatement : TSqlStatement
[SerializableAttribute]
public ref class CreateDatabaseStatement : public TSqlStatement
[<SerializableAttribute>]
type CreateDatabaseStatement =  
    class 
        inherit TSqlStatement 
    end
public class CreateDatabaseStatement extends TSqlStatement

Тип CreateDatabaseStatement обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод CreateDatabaseStatement Initializes a new instance of the CreateDatabaseStatement class.

В начало

Свойства

  Имя Описание
Открытое свойство AttachMode Gets or sets the attach mode.
Открытое свойство Collation Gets or sets the collation name.
Открытое свойство Containment Gets or sets the containment database option.
Открытое свойство CopyOf Gets or sets the name of source server and source database for the CopyOf option.
Открытое свойство DatabaseName Gets or sets the name of the database that is being created.
Открытое свойство DatabaseSnapshot Gets or sets the database snapshot name.
Открытое свойство FileGroups Gets or sets a list of Filegroups (including primary one) from LOG ON clause.
Открытое свойство FirstTokenIndex Gets or sets the first token index. (Производный от TSqlFragment.)
Открытое свойство FragmentLength Gets the fragment length. (Производный от TSqlFragment.)
Открытое свойство LastTokenIndex Gets or sets the last token index. (Производный от TSqlFragment.)
Открытое свойство LogOn Gets a list of log on file declarations.
Открытое свойство Options Gets or sets the database Options for Create Database.
Открытое свойство ScriptTokenStream Gets or sets a list of token streams. (Производный от TSqlFragment.)
Открытое свойство StartColumn Gets the starting column. (Производный от TSqlFragment.)
Открытое свойство StartLine Gets the starting line. (Производный от TSqlFragment.)
Открытое свойство StartOffset Gets the fragment start offset value. (Производный от TSqlFragment.)

В начало

Методы

  Имя Описание
Открытый метод Accept Accepts a visit from the specified visitor. (Переопределяет TSqlFragment.Accept(TSqlFragmentVisitor).)
Открытый метод AcceptChildren Accepts a visit for the Children from the specified visitor. (Переопределяет TSqlStatement.AcceptChildren(TSqlFragmentVisitor).)
Открытый метод Equals (Производный от Object.)
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetType (Производный от Object.)
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод ToString (Производный от Object.)

В начало

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

См. также

Справочник

Пространство имен Microsoft.SqlServer.TransactSql.ScriptDom