Unix Technical Forum

Problem with passing password to sqlcmd

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 ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2008, 11:52 AM
KonRi
 
Posts: n/a
Default Problem with passing password to sqlcmd

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?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:35 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com