Create backup of an Sql Server Database.

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

Syntax

Visual Basic
Public Shared Function BackupDatabase ( _
	databaseName As String, _
	connectionString As String, _
	outputFilename As String, _
	commandTimeout As Integer, _
	isKillConnections As Boolean _
) As Boolean
C#
public static bool BackupDatabase(
	string databaseName,
	string connectionString,
	string outputFilename,
	int commandTimeout,
	bool isKillConnections
)

Parameters

databaseName
Type: System..::..String
connectionString
Type: System..::..String
outputFilename
Type: System..::..String
commandTimeout
Type: System..::..Int32
isKillConnections
Type: System..::..Boolean

Return Value

See Also