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 exception unixODBC data source name not found

I am trying to connect my php application with SQL server in my Linux box. I installed unixODBC successfully and made required changes in odbc.ini and odbcinst.ini file. When I run command.
sqlcmd -S DSN -U USERNAME -P Password I am able…
Shrikant
  • 21
  • 4
0
votes
2 answers

want to convert string mm/dd/yy to date yyyy/mm/dd format in Sybase

I want to convert date which is string and like mm/dd/yy to date datatype in format yyyy/mm/dd.
RDP
  • 81
  • 2
  • 13
0
votes
1 answer

External Environment could not be started - CLR on Sybase's Interactive SQL

I'm having an issue figuring out how to start an external environment within Sybase Central's Interactive SQL. The executable, dbextclr12.exe has not been manipulated since 2010, so I know I didn't accidentally alter that. Here is the call: START…
0
votes
1 answer

using isql across multiple ksh scripts

I very new to ksh script but I have 2 ksh scripts each of them calling sybase stored procedure via isql. The issue I'm seeing is that when I execute the first script the stored procedure runs fine but when I execute the second it fails with error of…
user1015196
  • 617
  • 1
  • 7
  • 24
0
votes
2 answers

Ordering a column while adding an identity column in an existing table in Sybase

Thanks to this good forum, got a number of solutions to my past queries, thanks to Google too. This is my first post in the forum although. I have a table order with columns pin, orderPath, quantity. There are 5000 data in the table already. Now, I…
0
votes
1 answer

Only able to issue one sql statement from isql

I'm running Debian opening up an ODBC connection to an MSSQL database on the network. When I run isql I can issue one sql statement fine. If I issue the same request a second time it returns 0 rows. If I run the same command a third time the…
ThrowsException
  • 2,586
  • 20
  • 37
0
votes
1 answer

iSQL Plus: print to screen

How do you enable iSQL*Plus terminal to print output to screen? For instance a simple hello world block: Note how "hello world" should be printed to screen, but only confirmation that there were no compilation errors is given.
Stumbler
  • 2,056
  • 7
  • 35
  • 61
0
votes
1 answer

Firebird isql error dont show in output file

When I run isql with a script file: isql.exe -q -e -i %1 -o %~n1.log Then in the output file I see commands, but the error of commands I see on the screen when it run. The Error doesn't isn't written to the output file. Which command should I use…
kotygoroshko
  • 342
  • 1
  • 6
  • 18
0
votes
1 answer

Oracle Stored Procedure Call from iSQL PLUS Invalid Identifier

I have created a procedure using the following code using iSQL Plus on Firefox. The procedure compiles successfully. create or replace procedure get_staff ( product_no in varchar2, o_cursor out sys_refcursor) is begin open o_cursor…
waqas
  • 124
  • 1
  • 10
0
votes
1 answer

Default output width for isql

When I use isql with the same connect string and execute the same query in two different hosts, I get different result formatting -- one wraps each record after X characters, whereas the other host displays one line per record. So I figured that I…
amphibient
  • 29,770
  • 54
  • 146
  • 240
0
votes
1 answer

Same piped call to isql works on Solaris but not on RHEL

Background: I need to port a ksh script from SunOS 5.10 to RHEL 5.8. It makes a call to isql to retrieve some data and, quite contrary to the intended application of final endpoint client utilities such as isql, it parses its out to be used by a…
amphibient
  • 29,770
  • 54
  • 146
  • 240
0
votes
1 answer

Running Sybase ISQL scripts from windows batch file

I have already researched on this site as well as on google extensively for this. I have created a number of batch files that perform certain automated transactions(backups etc) on our production database. i want to further simplify my end of day…
prubyholl
  • 11
  • 1
  • 4
0
votes
2 answers

Xpassing command line argument to sybase query inside a shell script

This is my script. #!/usr/bin/sh isql -UXx -Pxxxxxx <
Vijay
  • 65,327
  • 90
  • 227
  • 319
0
votes
1 answer

Trying to get sybase db to connect via isql command line.... Gui RazorSQL works

Im using RazorSQL and the settings to connect is GUI RazorSQL Connections show as Driver Class net.sourcefourge.jtds.jdbc.Driver Driver Location /Java/drivers/jtds/jtds12.jar JDBC URL jdbc:jtds:sybase://IP-address:4100/DATABASE LINUX…
j0hnny
  • 57
  • 1
  • 10
-1
votes
1 answer

Dual results in Query

I have a query where I am getting double the results in my line items. Here is a copy of what I have. Do I have to do the joins differently? Here is also a screen shot of what the results look like. Every line item is doubled up. SELECT ds_id as…
Bertocious
  • 13
  • 1
  • 4
1 2 3
13
14