SqlCmd.Database Property

MSBuild Extension Pack

SqlCmdDatabase Property MSBuild Extension Pack Help 4.0.12.0
Gets or sets the name of the database to connect to. Issues a
USE
db_name statement when you start SqlCmd. This option sets the SqlCmd scripting variable SQLCMDDBNAME. This specifies the initial database. The default is your login's default-database property. If the database does not exist, an error message is generated and SqlCmd exits.

Namespace: MSBuild.ExtensionPack.SqlServer
Assembly: MSBuild.ExtensionPack (in MSBuild.ExtensionPack.dll) Version: 4.0.0.0
See Also

Reference