Plug-in Documentation

Microsoft SQL Server SQLCmd


The Microsoft SQL Server SQLCmd plug-in automates the execution of the Microsoft utility as a process step.

The utility is included with the Microsoft SQL Server. It is a command-line application that provides access to the management features of the Microsoft SQL Server.

This plug-in includes one step:


This plug-in requires IBM UrbanCode Deploy version 6.0 or later.
This plugin supports Microsoft SQL Server 2012, 2014, and 2016+.

This plug-in runs on the Windows operating systems that UrbanCode Deploy supports.

Note: The SQL-JDBC plug-in can be used to deploy to Microsoft SQL from a Linux agent.


No special steps are required for installation. See Installing plug-ins in UrbanCode Deploy.


Version 8

Updated SQLCmd Executable Path description for clarity.

Version 7

Added an Additional Arguments field to support SQLCmd 2014 and 2016+.

Version 6

Support property file encryption.

Version 5

Fixes APAR PI35342 compatibility defect with IBM Urbancode Deploy version and later.


Process steps in the Microsoft SQL Server SQLCmd plug-in

Run SQLCmd scripts

Run SQLCmd scripts in sorted order

Input properties for the Run SQLCmd scripts step
Name Type Description Required
Additonal Arguments String Specify additional command line arguments in the format: FLAG [VALUE].
Each Flag, and poential Value, should be separated with a space. Example: -v MyVar1=something
or -N. Separate each argument pair with a new line or semicolon.
DB Name String The name of the DB to use. No
Directory Offset String The directory offset relative to the current working directory where the step should
Exclude Files String A new line separated list of file filters to determine the files to be excluded from
the above selection. Use in conjunction with includes. If using list it is ignored.
Login Timeout String Specifies the number of seconds before a sqlcmd login to the OLE DB provider times
out when you try to connect to a server.Defaults to 8 sec if
not specified.
Password Password The password of the user for the scripts to be run as. No
Password Script String Use this instead of the Password field if the password is stored in a property. No
SQL File Includes String A new line separated list of file filters to determine the sql scripts to be executed.
Use this when order between files is unimportant.
SQL Files String A new line separated list of files to be executed. Use this when order between files
is important.
SQLCmd Executable Path String The full path to the sqlcmd executable if it is not in the current working directory,
and if it is not specified in the PATH environment variable.
Server\Instance String The server\instance to connect to. No
Use Dedicated Admin Connection Boolean Select here to use a dedicated admin connection. No
Use Trusted Connection Boolean Select here to use a trusted connection instead of user/password. No
User name String The user name for the scripts to be run as. No


With the Run SQLCmd scripts step, you can run a set of SQL statements as a script. Scripts are stored as an SQL file and are used to manage databases or to create the database schema during database deployment.

Step palette

To access this plug-in in the palette, click Database > SQLCmd.