Database Properties

MSBuild Extension Pack

Database Properties MSBuild Extension Pack Help 4.0.12.0

The Database type exposes the following members.

Properties

  Name Description
Public property BackupAction
Sets the type of backup action to perform. Supports Database, Files and Log. Default is Database
Public property Collation
Sets the collation of the database.
Public property CompressionOption
Sets the compression option for the backup. Supports On, Off and Default. Default is Default.
Public property ConnectionCount
Gets the number of connections the database has open
Public property CopyOnly
Sets whether the backup is a copy-only backup. Default is false.
Public property DatabaseItem
Sets the database name. When using Attach, you can specify the following metadata: Owner, Files (semicolon delimited), AttachOptions (Default None). When using Detach, you can specify the following metadata: UpdateStatistics, RemoveFulltextIndexFile (both default to false).
Public property DataFilePath
Sets the DataFilePath.
Public property Exists
Gets whether the database exists
Public property FileGroupName
Sets the FileGroupName. Defaults to PRIMARY
Public property Force
Set to true to force the creation of a database if it already exists.
Public property Incremental
Set to true to perform an Incremental backup. Default is false.
Public property Information
Gets the Information TaskItem. Each available property is added as metadata.
Public property LogFilePath
Sets the LogFilePath.
Public property LogName
Sets the Log Name. Defaults DatabaseItem.ItemSpec + "_log"
Public property NewDataFilePath
Sets the NewDataFilePath.
Public property NoPooling
Set to true to create a NonPooledConnection to the server. Default is false.
Public property NotificationInterval
Sets the PercentCompleteNotification interval. Defaults to 10.
Public property OutputFilePath
Sets the OutputFilePath.
Public property PrimaryDataFileName
Sets the primary data file name.
Public property RegexPattern
Sets the regex pattern.
Public property ReplaceDatabase
A Boolean value that specifies whether a new image of the restored database will be created. If True, a new image of the database is created. The image is created regardless of the presence of an existing database with the same name. If False (default), a new image of the database is not created by the restore operation. The database targeted by the restore operation must exist on an instance of Microsoft SQL Server.
Public property RestoreAction
Sets the type of restore action to perform. Supports Database, Files, Log, OnlineFiles, OnlinePage. Default is Database
Public property ScriptDrops
Sets ScriptingOptions for ScriptData TaskAction
Public property ScriptSchema
Sets ScriptingOptions for ScriptData TaskAction
Public property SecondaryDataFileName
Sets the secondary data file name. No default value.
Public property SecondaryDataFilePath
Sets the SecondaryDataFilePath.
Public property StatementTimeout
Sets the number of seconds before an operation times out. The default is not to specify this property on the connection.
Top
See Also

Reference