Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Sybase > passing parameters to isql

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-10-08, 13:38
vmhatup vmhatup is offline
Registered User
 
Join Date: Jun 2008
Posts: 2
passing parameters to isql

We have a batch program that runs several queries in a text file. This call was invoked like this:
> isql -c "uid=dba;pwd=sql;dbn=mydb" read D:\IMS\Queries\RptGen.sql

For some unknown reason, now I'm getting error:
"isql: unknown option read" and a list of all the available parameters that isql accepts.

It used to run before. Now it doesn't. How can I modify this command line so that all the parameters are correct and this line runs?

Thanks,
VM
Reply With Quote
  #2 (permalink)  
Old 06-11-08, 05:01
Martijnvs Martijnvs is offline
Who? Me?
 
Join Date: Jan 2004
Location: The Hague/Utrecht, NL
Posts: 273
use the option -i<path_to_inputfile> instead:
Code:
isql -S<servername_in sql.ini> -U<username> -P<password> -D<dbname> -i<path_to_inputfile>
__________________
I'm not crazy, I'm an aeroplane!
Reply With Quote
  #3 (permalink)  
Old 06-23-08, 07:46
trvishi trvishi is offline
Registered User
 
Join Date: Sep 2003
Location: Switzerland
Posts: 370
Quote:
Originally Posted by vmhatup
We have a batch program that runs several queries in a text file. This call was invoked like this:
> isql -c "uid=dba;pwd=sql;dbn=mydb" read D:\IMS\Queries\RptGen.sql

For some unknown reason, now I'm getting error:
"isql: unknown option read" and a list of all the available parameters that isql accepts.

It used to run before. Now it doesn't. How can I modify this command line so that all the parameters are correct and this line runs?

Thanks,
VM

The syntax you posted is for Adaptive Server Anywhere. And isql is for Sybase Adaptive Server Enterprise. Two totally different products. If you still have issues, let us know which Database Server Type you are trying to access.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On