bibi92
asked on
Mask password in sqlcmd command
How it is possible to avoid putting in light the password of one to use sql in a sqlcmd script?
Thanks
bibi
Thanks
bibi
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks bibi
ASKER
SET SQLCMDUSER=B00A
SET SQLCMDPASSWORD=toto
SET SQLCMDSERVER=SRVSERVER\TES
SET SQLCMDDBNAME=dbname
sqlcmd -Q "select count(*) from ATEST" -o d:\test.sql
But, I have this error:
Login failed for user 'B00A'.
Thanks
bibi