Close all the connection for a database. Be carefull when using this method, it might causes problems if an external process uses the connection.

Namespace:  Devolutions.Utils
Assembly:  Devolutions.Utils (in Devolutions.Utils.dll)

Syntax

Visual Basic
Public Shared Function KillDatabaseConnections ( _
	databaseName As String, _
	connectionString As String _
) As Boolean
C#
public static bool KillDatabaseConnections(
	string databaseName,
	string connectionString
)

Parameters

databaseName
Type: System..::..String
connectionString
Type: System..::..String

See Also