SqlCmdServer Property MSBuild Extension Pack Help 4.0.12.0

Gets or sets the name of the SQL Server to which to connect. It sets the SqlCmd scripting variable SQLCMDSERVER.

Specify Server to connect to the default instance of SQL Server on that server computer. Specify Server to connect to a named instance of SQL Server on that server computer. If no server computer is specified, SqlCmd connects to the default instance of SQL Server on the local computer. This option is required when you execute sqlcmd from a remote computer on the network.

If you do not specify a Server when you start SqlCmd, SQL Server checks for and uses the SQLCMDSERVER environment variable.

Note: The OSQLSERVER environment variable has been kept for backward compatibility. The SQLCMDSERVER environment variable takes precedence over the OSQLSERVER environment variable.

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

Reference