This is a discussion on Problem with passing password to sqlcmd within the SQL Server forums, part of the Microsoft SQL Server category; --> I don't know how to pass strange looking passwords to sqlcmd. In sql I use 'pass' and that works ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I don't know how to pass strange looking passwords to sqlcmd. In sql I use 'pass' and that works fine, but what to do with command line applications like sqlcmd? if password contains no " sumbol I can use "password" but what if the password contains " . / - or spaces? ex. password = 'a-d ". a"' sqlcmd -S myServer -U myUser -P a-d ". a" -d "myDb" -i "C:\myProcedure.sql" -o "C:\temp\myOutput.out" --->whon't work.. How to pass strange looking passwords to sqlcmd? |