By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,363 Members | 2,417 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,363 IT Pros & Developers. It's quick & easy.

OSQL -D parameter

P: 1
I need an example of showing how to use OSQL' s -D parameter.

I have defined a system DSN (DCA_Test) using the SQL Server driver. It "tests" successfully.

When I try something like this at the command line, it still asks for user info

osql -D DCA_Test -Q "exec getVM_HostName 'lod123' " -n

Shouldn't it pick up the SQL server, database, user and pswd from the DSN ?
The same command works perfectly with the -U and -P parameters

What am I doing wrong?
Apr 1 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.