We have a SQL server for which the password contains comma (',')
. Since we use the same in SQLCmd
, the process fails. Please find the query which we are using below
SQLCmd -U%1 -P%2 /S%servername% /dDbName -Q"EXEC sp_test null, 'DbName', '\ProcessLog\', 'STORE'" >> %NB4%\ProcessLog.log
The string is passing from a different command file.
But the password contains comma (','), so that the process is not able to connect to SQL Server
Is there a way to add escape character in the parameters? Tried using double quotes ('"'), but no luck. Any help will be much appreciated.