Server.AttachDatabase Метод

Определение

Перегрузки

Имя Описание
AttachDatabase(String, StringCollection)

Присоединение базы данных

AttachDatabase(String, StringCollection, AttachOptions)

Присоединение базы данных

AttachDatabase(String, StringCollection, String)

Присоединение базы данных

AttachDatabase(String, StringCollection, String, AttachOptions)

Присоединение базы данных

AttachDatabase(String, StringCollection)

Присоединение базы данных

public void AttachDatabase(string name, System.Collections.Specialized.StringCollection files);
member this.AttachDatabase : string * System.Collections.Specialized.StringCollection -> unit
Public Sub AttachDatabase (name As String, files As StringCollection)

Параметры

name
String

Имя базы данных

files
StringCollection

Список файлов

Применяется к

AttachDatabase(String, StringCollection, AttachOptions)

Присоединение базы данных

public void AttachDatabase(string name, System.Collections.Specialized.StringCollection files, Microsoft.SqlServer.Management.Smo.AttachOptions attachOptions);
member this.AttachDatabase : string * System.Collections.Specialized.StringCollection * Microsoft.SqlServer.Management.Smo.AttachOptions -> unit
Public Sub AttachDatabase (name As String, files As StringCollection, attachOptions As AttachOptions)

Параметры

name
String

Имя базы данных

files
StringCollection

Список файлов

attachOptions
AttachOptions

параметры, используемые при присоединении базы данных

Применяется к

AttachDatabase(String, StringCollection, String)

Присоединение базы данных

public void AttachDatabase(string name, System.Collections.Specialized.StringCollection files, string owner);
member this.AttachDatabase : string * System.Collections.Specialized.StringCollection * string -> unit
Public Sub AttachDatabase (name As String, files As StringCollection, owner As String)

Параметры

name
String

Имя базы данных

files
StringCollection

список файлов для присоединения

owner
String

новое имя владельца

Применяется к

AttachDatabase(String, StringCollection, String, AttachOptions)

Присоединение базы данных

public void AttachDatabase(string name, System.Collections.Specialized.StringCollection files, string owner, Microsoft.SqlServer.Management.Smo.AttachOptions attachOptions);
member this.AttachDatabase : string * System.Collections.Specialized.StringCollection * string * Microsoft.SqlServer.Management.Smo.AttachOptions -> unit
Public Sub AttachDatabase (name As String, files As StringCollection, owner As String, attachOptions As AttachOptions)

Параметры

name
String

Имя базы данных

files
StringCollection

Список файлов

owner
String

новое имя владельца

attachOptions
AttachOptions

параметры, используемые при присоединении базы данных

Применяется к