Server.KillDatabase(String) Method

Definition

Drops a database. If users are connected to it their connections will be dropped.

C#
public void KillDatabase(string database);

Parameters

database
String

Applies to

Product Versions
Microsoft.SqlServer.SqlManagementObjects 150.18208.0, 160.2004021.0