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
0
votes
1 answer

iSQL Query Returning Value Multiple Times

The output of my column "SettlementsPayable" is returning the value for each line item even though that is not my desired result. It should only be returning the value when the ratecode = SHUNTING Maybe it is how I am getting the data into my…
Bertocious
  • 13
  • 1
  • 4
0
votes
1 answer

Sybase ASE Client Tools for Windows and Linux

I am looking for Sybase ASE client tools for Windows and Linux. I am trying to access the database using isql. But in order to use isql in python, one must have the Sybase ASE drivers/client tools installed. The server my code (python) will be…
Coder Dev
  • 113
  • 2
  • 9
0
votes
1 answer

"unable to open buffer file" sybase isql error

When trying to open sybase ISQL tool we get error as "unable to open buffer file". Trying from LINUX RHL. Command used is as below isql Error got is as below unable to open buffer file
sakeesh
  • 919
  • 1
  • 10
  • 24
0
votes
1 answer

accessing sql server using unixODBC's isql

I am trying to run a query on sql server (source) using isql on the client server. Everything worked before the rhel6 to rhel7 upgrade on the client server. I am able to connect to sql server just not run any queries. I verified that all the drivers…
TheNewGuy
  • 559
  • 1
  • 10
  • 27
0
votes
1 answer

Sybase - Return only data from last three days

I am fairly new to this. I have a statement where I want to only return the last three days of data based on shipment_datedelivered. What date functions can I use to achieve this? I am using Sybase. select dba.disp_ship.ds_id,…
Bertocious
  • 13
  • 1
  • 4
0
votes
0 answers

Shell scripts who call sql scripts - convert isql istructions to sqlcmd istructions

we are migrating some shell scripts from unix to linux and we are bsolutely newby. Some scripts invoke slq scripts which contain instructions for operations on a syabase database that we are migrating to sql server database, so we are rewriting…
0
votes
0 answers

How to connect and query from two database servers in isql?

I want to query from two tables present in two different database servers using ISQL. Query is select * from server1.database1.table1 where column1 in (select column1 from server2.database1.table1) How do I do this in ISQL?
0
votes
2 answers

Throwing Shell script's Stored procedure Exception Back to the Caller

i have a Shell Script A which calls Shell Script B which calls the Stored procedure within ISQL within it. The Exception in Shell Script B's Stored procedure has to be thrown back to the Original Shell Script A. Any idea how to do this?
user4782805
0
votes
1 answer

How to fill NULL values with values from another table using UNION

I have to write a select statement that displays the orderId and Delivery address from one table but if there is no deliver address it should display the billing address of the customer. I'm unsure how to do this since UNION requires the same number…
Liam
  • 1
  • 2
0
votes
1 answer

Cannot connect to isql through ssh'ing to the server

I have a server where isql is been installed. I have to run the query from local server which first do ssh to the server and connect to the db and run the desired query (SELECT MID, NODE, dateformat(DATETIME,'yymmddhhnnss') as DT FROM EU_TAB WHERE…
vkk05
  • 3,137
  • 11
  • 25
0
votes
0 answers

Sybase iSQL - syntax error near ';' when exporting table to csv

I'm trying to export a table from a Sybase database to a csv using iSQL and it keeps giving me a syntax error: Msg 102, Level 15, State 181: Server 'VSQLSERVER02', Line 1: Incorrect syntax near ';'. I've tried all of the following and they all give…
Anonymous
  • 440
  • 3
  • 14
0
votes
1 answer

How to use isql COLUMN Format option

I am getting syntax error when I used COLUMN Format in sybase isql 1> column FEEDNAME format ”A30” 2> go Incorrect syntax near format. please advise.
Veera V
  • 77
  • 9
0
votes
1 answer

Is iSQL more safer than MYSQL. And what is the difference between these.Is there use difference

Do somebody know difference between these to. Or could link in some good resources where i can find more about iSQL. Is iSQL safer than MYSQL? I have tried google and youtube but dont find much abourt this.
saeed
  • 11
  • 1
0
votes
1 answer

iSQL - Segmentation fault for mysql server but works fine with SQL servers

I can connect to SQL servers using iSQL but when I tested mysql server it throws Segmentation fault error. Same issue with tsql. Mysql Server version is 5.7. Tested with 2 different MySQL server (5.7 though). root@client001~: isql -v…
Robert
  • 11
  • 3
0
votes
0 answers

Sybase ASE isql - Remove blank first column from output into csv file

My question is similar to this post but in their example I want to remove the first delimiter in the output. In the SQL file that's being called, I set nocount on, proc_return_status off, and set proc_output_params off which I figured would remove…
plankton
  • 369
  • 5
  • 21