Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sqlcmd access : password with special character

I try to access with sqlcmd by this command:

sqlcmd  -U sa -P $test$ -S hostname -d db_test -i .\prova.sql > upgrade.log

but the login failed.

The password I correct, I think is a problem with special character, in this case the $.

Do you have any solutions?

like image 960
fabrix_00 Avatar asked Oct 11 '25 13:10

fabrix_00


1 Answers

the solution is to use the "", in this case:

-P "$test"
like image 57
fabrix_00 Avatar answered Oct 14 '25 15:10

fabrix_00