Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

isql?

Posted on 1998-07-07
10
Medium Priority
?
810 Views
Last Modified: 2008-02-07
Im using isql to access the sybase server.
Im using this syntax,
isql -w 130 -i in.txt -o out.txt
However, isql says it cant open in.txt. I assume this is because it cant find it. What path should this file be put at so that the isql can locate it?
0
Comment
Question by:Coates
  • 5
  • 5
10 Comments
 
LVL 7

Accepted Solution

by:
Victor Spiridonov earned 40 total points
ID: 1098160
It should be in the directory you runnning isql from , but I would still suggest to put full path, just to make sure you are using the file you intended to use. You can also use '<' filename instead of -i filename
0
 

Author Comment

by:Coates
ID: 1098161
Ive tried using the full path. Ive also triied the following code.
isql -w 132 -i c:\in.txt -o c\:out.txt
This gives me an error
Cant find input file c:in.txt
Ive also tried -i /in.txt
-i c:/in.txt
0
 
LVL 7

Expert Comment

by:Victor Spiridonov
ID: 1098162
Have you tried using '<' redirector ?
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:Coates
ID: 1098163
I get another error using this syuntax:
ksh: c:\in.txt:cannot open
Am i using the correct path format?
Do i use a '\' or a '/'??
0
 
LVL 7

Expert Comment

by:Victor Spiridonov
ID: 1098164
What operatin system do you use?
May be obvious, but happens: is the file realy exists? Do you have permission to read it?
0
 

Author Comment

by:Coates
ID: 1098165
Im using windows 95
The file is a standard .txt file located on my c:\ directory
I am using telnet to access the Unix sybase server
isql < c:\in.txt >c:|out.txt
this is what ive just tried and got the same error!
0
 
LVL 7

Expert Comment

by:Victor Spiridonov
ID: 1098166
If I correctly understood, you are trying to type this in telnet window. When you use a telnet, your computer emulates terminal, telnet doesn't know anything about your c: drive. and if you are using just in.txt this in.txt should be present not in your PC, but in the  UNIX server directory you are executing isql from.
0
 

Author Comment

by:Coates
ID: 1098167
Is there any way to use a local input file??
0
 
LVL 7

Expert Comment

by:Victor Spiridonov
ID: 1098168
No , unless there  is a Windows version  of isql, that you can install and run from you PC, not from telnet session.
0
 

Author Comment

by:Coates
ID: 1098169
OK thanks!
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
The decision to migrate to the cloud is not a simple one—many factors, such a cost, ease of use, and ongoing maintenance come into play. The goal is always for cloud platforms to make storage and backups more seamless and effective. Here’s a look at…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question