Example with integrated Auth (using jTDS driver)
--driver=net.sourceforge.jtds.jdbc.Driver --url="jdbc:jtds:sqlserver://<server>;instance=<instance>;databaseName=<DBName>;integratedSecurity=true"
Example with AD username / pwd:
--driver=net.sourceforge.jtds.jdbc.Driver --url="jdbc:jtds:sqlserver://<server>;instance=<instance>;databaseName=<DBNAME>;domain=<AD_Domain>;useNTLMv2=true;user=<domain\username>;password=<password>"
here I would recommend an additional wrapper to pass the password as a secure parameter, not storing it.
Also note that the connection string is logged to console, including username/password pair, so be careful about that.
If you generate SQL script for the change, these credentials will need to be stripped out.
Also note that the connection string is logged to console, including username/password pair, so be careful about that.
If you generate SQL script for the change, these credentials will need to be stripped out.