Questions tagged [isql]

The isql utility is a command-line Interactive SQL utility that uses the Adaptive Server Enterprise Open Client API.

isql is a utility that is being provided by Sybase to connect to the Sybase server. The isql utility can be invoked from the Windows command prompt or in Unix machine. The basic command to connect to a Sybase server via the isql utility is as follows -

isql -SSERVER_NAME -DDATABASE_NAME -ULOGIN_NAME -PPASSWORD

Once you enter this in the command prompt you will be visited with a blank command screen with a prompt -

>

You can now enter sql commands and create scripts with isql and execute them.

The isql utility is located at -

$SYBASE/$SYBASE_OCS/bin on UNIX machines and at C:\SYBASE\OCS-12_0\bin\ folder on Windows system.

Some basic problems that database users find with isql utility is that it provides console mode for working in with Sybase databases which is usually not very handy for many database users especially having experience working in Windows. With many handy GUI IDE's available for working with Sybase servers like ASEISQL(free tool), Embarcadero Rapid SQL, Quest TOAD etc the isql utility is lesser used in normal day work. However the utility has some basic characteristics of its own like a script not terminated by the go token can be easily identified while working with isql than any other IDE as isql does not execute a statement until it finds the delimiter token go at the end of the script.

To understand the isql utility more you can visit the Sybase knowledge center site @ -

Sybase Knowledge Center Link to Sybase ASE 15.0 isql utility

179 questions
0
votes
0 answers

Need assistance with isql using firebird

I'm trying to use a batch file combined with Windows task scheduler to manipulate the values of a firebird database table on a certain date and time. Since Windows task scheduler already has most of this capability, it only makes sense to use…
0
votes
3 answers

Isql command error while executing query on Sybase database

I would like to create a Windows batch file to execute the query on Sybase database running on Linux. Batch file: plink.exe -ssh sybase@ -pw -m C:\scripts\script1.bat -t > C:\scripts\testing.log script1.bat: echo --- query 1 ----- cd…
Rahat Ali
  • 1
  • 1
  • 1
0
votes
3 answers

multiple sql queries using single script in isql

I am having few DDL queries written in multiple sql files named as 1.sql 2.sql etc 1000 f iles are there containg 2000+ create table statments I have to use sybase isql using unix b ox. I want to prepare single script which can call these scripts…
user3571396
  • 103
  • 2
  • 10
0
votes
1 answer

Importing SQLDump to SQL Server from Ubuntu machine

I have a situation wherein our current DB, in MySQL needs to be migrated to SQL Server. For testing purposes, I have a created an RDS instance (SQL Server) on AWS and the connection to it via command line using isql works well. However I have also…
Navin Nagpal
  • 612
  • 10
  • 23
0
votes
3 answers

ERROR at line 1: ORA-00918: column ambiguously defined

I have this query and in order to query the manager department name always getting the error in title: select e.employee_id e_id , e.first_name || ' ' || e.last_name employee_name , e.job_id , e.department_id ,…
MHmd Issa
  • 9
  • 1
0
votes
0 answers

Query filesystems and DB utilization using vi editor

I am currently monitoring multiple systems' OS (Unix) filesystem utilization and DB (Sybase) utilization. I would like to query those in one file using the vi editor. My script goes like this: df -h su - sybpg1 isql -Usapsa -SPG1 -PMaster4SID -w999…
Newguy
  • 1
0
votes
0 answers

Not able to run isql on cygwin : env var misconfigured?

There is another similar discussion on stackoverflow but the error message is slightly different, and the solution given did not work for me. Here is my case : I just installed cygwin on a windows 7 workstation. I also copied from a linux server the…
nico
  • 125
  • 12
0
votes
0 answers

Can't view stored procedure source code in firebird

I'm using firebird 3.0 database with some stored procedures. Let's say i want to check the definition (sql code) of procedure SP_CALC. I've tried ISQL: show procedure SP_CALC; I've also tried using Database Workbench (demo version) In both cases i…
BojowyZajaczek
  • 321
  • 1
  • 2
  • 10
0
votes
2 answers

How to combine multiple excel sheets into single excel sheet with tabs?

I am doing a project in my office. Concept: Write a unix shell script to fetch data from oracle db and write to excel file and send it in email. I written a shell script which fetch 4 set of data from database in html table format (using isql) in 4…
Jayavinoth
  • 494
  • 1
  • 8
  • 19
0
votes
2 answers

isql "select ... where 'a part of a column value' = 'a part of a column value'

I have 2 csv files. In one file I have a phone number with prices and in the second file I have a phone number with the name of its owner. First file: file1.csv 491732234332;30,99 491723427343;12,59 491732097232;33,31 Second file:…
Alexander Baltasar
  • 1,006
  • 1
  • 11
  • 25
0
votes
1 answer

Python Sybase module vs subprocess isql , which one is better to use?

I found isql(using subprocess) is taking less time compare to Sybase module in python. Could someone please suggest me, should I use subprocess or Sybase. Below is the small test script which I have used for my understanding. Query = 'select…
Reetesh Nigam
  • 107
  • 2
  • 2
  • 11
0
votes
0 answers

Isql import with big file

When I try to import big SQL file with isql, I have strange error "c:\Program Files\Firebird\Firebird_2_5\bin\isql.exe" -b -e -i d:\ImportSQL.sql localhost:D:\ImportDB.gdb -user SYSDBA-password masterkey Statement ailed, SQLSTATE = 42000 Dynamic…
Hugues Van Landeghem
  • 6,694
  • 3
  • 29
  • 55
0
votes
1 answer

Getting mapped entities from an ISQLQuery without AddEntity

consider these POCOs: class Foo { int Id {get;set;} string Name {get;set;} } class Bar { int Id {get;set;} string PropA {get;set;} Foo PropB {get;set;} } Now what i want to achieve is using an ISQLQuery with a root entity of Bar to also…
Jaguar
  • 5,881
  • 33
  • 46
0
votes
0 answers

ISQL Six Digits Limitation

I wanna get rid of isql six digits limitation. How can i overcome this ? " isql displays only six digits of float or real data after the decimal point, rounding off the remainder." If WE get it from sql advantage we can see all digits after comma.…
0
votes
1 answer

Print sql output messages to a file in shell script

I need to run SQL scripts and wanted to capture that output to a log file. I am trying to access Sybase using ISQL and below is the sample file, though only echo messages are getting printed in the log file. Command that I am running on windows box…