You can use the BCP utilities to customize SQLServer connections in DataFlow.
Follow these steps to install the BCP utility for SQLServer:
- Download the Microsoft Red Hat repository configuration file.
#sudo curl https://packages.microsoft.com/config/rhel/8/prod.repo > /etc/yum.repos.d/msprod.repo
- If you already installed an earlier version of mssql-tools, remove the older unixODBC packages.
#sudo yum remove mssql-tools unixODBC-utf16-devel
- Run the following commands to install
mssql-tools
with the unixODBC developer package.#sudo yum install mssql-tools unixODBC-devel
- To add bcp/sqlcmd command and make it available to DataFlow, create its symlinks in the
/usr/bin
folder.#sudo ln -s /opt/mssql-tools/bin/bcp /usr/bin/bcp #sudo ln -s /opt/mssql-tools/bin/sqlcmd /usr/bin/sqlcmd
- Verify your installation by running either the
bcp
or thesqlcmd
command.#bcp #sqlcmd
- Restart the DataFlow services.
#tscli --adv service restart dataflow