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

199 questions
1
vote
1 answer

Configuring SQL Anywhere to read from an ASE server

I have a Sybase ASE server that I'm able to connect to with ASE iSql totally fine. The database definition in my sql.ini file looks like: [] master=TCP,, to connect with iSql, I can make the following command-line call and…
Dov
  • 15,530
  • 13
  • 76
  • 177
1
vote
0 answers

isql returns only 1 field of 1 result

I have recently installed IBM's Netezza Linux ODBC driver onto my web server. We have it all set up and are running queries through isql with the hopes to integrate it to a php website. The issue we are having has to do with the return set. I…
powpow12
  • 587
  • 8
  • 13
1
vote
1 answer

table or view does not exist

Good Day. I'm running a Powerbuilder 9 application on an Adaptive Server Anywhere Database Engine Version 8.0.1.2600. I use a INI file to connect to the database with default user 'dba' password 'sql' and all works fine. Right ! I want to create…
1
vote
2 answers

Check if `isql` queries succeed

Is there any way to check if an isql query has failed? It seems isql returns 0 whether queries succeed or not, only returning false if there was a error connecting to the server. How can I determine whether or not my Sybase queries work from the…
Aaron
  • 199
  • 1
  • 6
1
vote
2 answers

psqlODBC won't load after installing MS SQL ODBC driver on RHEL 6

I had the PostgreSQL drivers working on my RHEL 6. But after I installed Microsoft® SQL Server® ODBC Driver 1.0 for Linux I can no longer connect to PosgreSQL data sources. I can connect to SQL Server data sources fine. When I had this same issue a…
Kapil Vyas
  • 607
  • 2
  • 8
  • 22
1
vote
2 answers

Run script with create table on sybase-iq

I want to create table from a script on sybase-iq. Script table.sql contains: create table abc ( id int ) go I run the script command isql -U*** -P*** -S*** -D*** -itable.sql -oout.txt I'm sure connection parameters are ok. Name of script is…
Robert
  • 25,425
  • 8
  • 67
  • 81
1
vote
2 answers

Informix 7.3 isql insert statement - text/blob/clob field insert error

Is a way around this?? I am trying to insert some data into a table whose structure is: Column name Type Nulls crs_no char(12) no cat char(4) …
CheeseConQueso
  • 5,831
  • 29
  • 93
  • 126
0
votes
2 answers

How to execute an SQL statement stored in a shell script variable using isql

So, I am trying to execute an SQL statement stored in a shell script variable using isql Generic code attached. SQL="select * from Student" EMPLOYEES=`isql -U $USERNAME -P $PASSWORD -D $DATABASE -S $SERVER<
Rishabh
  • 61
  • 1
  • 1
  • 6
0
votes
1 answer

ASE ISQL output to file, occassionally is empty or blank

Give this unix script, which is scheduled batch run: isql -U$USR -S$SRVR -P$PWD -w2000 < $SCRIPTS/sample_report.sql > $TEMP_DIR/sample_report.tmp_1 sed 's/-\{3,\}//g' $TEMP_DIR/sample_report.tmp_1 > $TEMP_DIR/sample_report.htm_1 uuencode…
Carlos Jaime C. De Leon
  • 2,476
  • 2
  • 37
  • 53
0
votes
1 answer

How to "hide" (return status = 0) from isql stored procedure result?

When I execute stored procedures using isql, they might give this info: (return status = 0) Is it possible to disable that info? I already use SET NOCOUNT ON to disable some part but this is still presented.
aF.
  • 64,980
  • 43
  • 135
  • 198
0
votes
1 answer

isql (sql anywhere) trigger gives error

got strange error "Correlation name 'Club' not found" but the table Club is in the DB. I think the problem is after inserting the values: ALTER TRIGGER "tg_add_club" AFTER INSERT, UPDATE ON Club REFERENCING NEW AS item FOR EACH ROW WHEN…
Slavak
  • 323
  • 2
  • 3
  • 11
0
votes
0 answers

[S1000]ERROR: syntax error at or near "create" at character 29;

While using ISQL in linux for POSTGRES, I am able to make a connection to the database and execute select/update/insert/delete statements on tables. But I am unable to execute create/drop/grant statements. I am getting error as below, 1.CREATE SQL>…
0
votes
0 answers

Unable to DELETE in isql using JOIN

I've got a SELECT statement built that properly identifies records I wish to delete. My syinvolv table is a linking table that associates two primary keys (one from nmmain and prmain in my example) SELECT count(*) FROM syinvolv LEFT JOIN…
0
votes
1 answer

isql wait for end of query on iphone

i'm using isql sdk to make Microsoft Sql 2008 query through iphone, everything works fine but I always need to click two button to get the answer of my query. I press the button 'submit' then i can press the button 'next page' and the result will…
Remz1337
  • 165
  • 1
  • 10
0
votes
1 answer

Executing SQL statement in ASEISQL with UNIX scripts

Since I am new to unix scripting. I am running a SQL statement in ASE ISQL, and if SQL statement gives some result then I need to mail that result to a particular users. And if SQL is not returning any result then mail should not be sent. The Sample…
WENzER
  • 205
  • 1
  • 5
  • 15