Server.DetachDatabase Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
DetachDatabase(String, Boolean) |
Detach a database |
DetachDatabase(String, Boolean, Boolean) |
Detach a database |
Detach a database
C#
public void DetachDatabase(string databaseName, bool updateStatistics);
member this.DetachDatabase : string * bool -> unit
Public Sub DetachDatabase (databaseName As String, updateStatistics As Boolean)
Parameters
- databaseName
- String
- updateStatistics
- Boolean
Applies to
Microsoft.SqlServer.SqlManagementObjects 160.2004021.0 ja Microsoft.SqlServer.SqlManagementObjects 150.18208.0
Toode | Versioonid |
---|---|
Microsoft.SqlServer.SqlManagementObjects | 150.18208.0, 160.2004021.0 |
Detach a database
C#
public void DetachDatabase(string databaseName, bool updateStatistics, bool removeFulltextIndexFile);
member this.DetachDatabase : string * bool * bool -> unit
Public Sub DetachDatabase (databaseName As String, updateStatistics As Boolean, removeFulltextIndexFile As Boolean)
Parameters
- databaseName
- String
- updateStatistics
- Boolean
- removeFulltextIndexFile
- Boolean
Applies to
Microsoft.SqlServer.SqlManagementObjects 160.2004021.0 ja Microsoft.SqlServer.SqlManagementObjects 150.18208.0
Toode | Versioonid |
---|---|
Microsoft.SqlServer.SqlManagementObjects | 150.18208.0, 160.2004021.0 |