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
1
vote
1 answer

Query history informix isql

We are using informix db on linux operating system.Is there a way we can know history of queries that have been executed through isql ?
1
vote
1 answer

How to extract data with Actual Column Size rather then Fixed Column Size in SYBASE by ISQL query

ISQL command executes the SQL file and generates a text file. The results data columns size is based on the fixed size of the column and not based on the actual size of the data. e.g. The Table "STUDENT" has columns "FirstName"…
Ratkiia
  • 23
  • 5
1
vote
1 answer

How to configure sqlcmd on macos to connect to MSSQL using Windows Authentication

I would like to use the sqlcmd cli on a mac to run a script on a Microsoft SQL Server using Windows Authentication. Software details: Mac OS 10.13 MSSQL 2012 version 11.0.2100.60 sqlcmd version 17.0.0001.1 Linux As a test, I tried: sqlcmd -S…
enmyj
  • 151
  • 1
  • 11
1
vote
2 answers

Firebird database SYSDBA connection error

I just installed Firebird for Win64, and I was trying to connect to the employee database which comes pre-packaged with ISQL. Following the steps from the Firebird official QuickStart Documentation I opened the ISQL utility and entered: connect…
Marco
  • 2,079
  • 2
  • 18
  • 15
1
vote
2 answers

How to set column width in Informix isql query from command line

When using the Informix isql UI, if the result of a select statement exceeds the width of your display, the output displays vertically on the screen. 1st col_1 1st col_2 1st col_3 2nd col_1 2nd col_2 2nd col_3 etc However, if the width of the…
a1_rich
  • 11
  • 1
  • 3
1
vote
2 answers

isql without sudo (MSSQL ODBC Linux)

I successfully installed the offical MSSQL ODBC drivers in Linux and I can connect to every database and execute commands with isql: sudo isql -v dsn user pw However, if I execute a SQL statement (select ...) in my own application it is not…
J0eBl4ck
  • 195
  • 1
  • 1
  • 7
1
vote
1 answer

Sybase isql limits output to six decimal places - How to get around this?

I'm trying to get floating point data from a Sybase database, exactly as it's stored, using isql in a shell script to be able to copy it to another table. The problem I've run into is that it rounds these numbers to at most six decimal places. This…
Kirill
  • 439
  • 2
  • 11
1
vote
2 answers

My C++ application cannot connect to Informix DB server

I've an application (can't provide code, as it's very long), that uses unixODBC. Also, I have installed isql. Everything seems to be configured correctly - drivers, servers and so on, as using isql, I connect to the Informix DB with no problems. But…
Kiril Kirov
  • 35,473
  • 22
  • 102
  • 177
1
vote
1 answer

ISQL Connected but PHP script doesn't work

I have a problem while connecting MSSQL ODBC. I tried using ISQL and it shows result, but when I use PHP script, there is no result. I am using Ubuntu server 12, and PHP Version 5.3.10-1
1
vote
1 answer

isql error could not sqlExecute on listagg

I'm attempting to do a LISTAGG in iSQL connecting to an oracle DB. The following query runs fine and returns 106 results. SELECT DISTINCT owner FROM dba_segments WHERE owner NOT IN ('SYS', 'SYSTEM', 'EXFSYS', 'DBSNMP', 'SQLTXPLAIN', 'XDB', 'WMSYS',…
whoisearth
  • 3,436
  • 6
  • 49
  • 103
1
vote
3 answers

Can't connect to a firebird server on docker

I'm a macOS user and I got weird errors just to create a database with firebird. I saw that there are some dock containers with firebird that run just fine ( i was able to create databases, perform queries and so on) but when I tried to connect from…
Leonardo Galani
  • 167
  • 3
  • 20
1
vote
0 answers

MariaDB connect to a DSN in odbc.ini

I am trying to connect from Java to a DSN using MariaDB, If I not use the DSN it works Class.forName("org.mariadb.jdbc.Driver").newInstance(); Connection conn = DriverManager.getConnection("jdbc:mariadb://< host >:/< database >", < user >,<…
bracana
  • 923
  • 2
  • 10
  • 19
1
vote
1 answer

How does Informix deal with temporary tables when an iSQL session is dropped?

I'm curious as to how Informix (7.3) deals with temporary tables created with no log when a session is terminated without dropping those tables. I connect using iSQL: cat |isql db Then, for example, I create one or more temporary tables with no…
CheeseConQueso
  • 5,493
  • 25
  • 84
  • 126
1
vote
2 answers

How do I drop any constraint only if it exists in sybase?

I can drop a table, procedure, views if it exists using the following code but do not know how to do the same with a constraints(foreign key, check constraint): IF EXISTS (SELECT 1 FROM sysobjects WHERE user = 'owner' and name = 'tablename' AND type…
Geetanjali Jain
  • 352
  • 4
  • 18
1
vote
1 answer

ISQL - exporting column with very long text

I have a table in sybase database running on Solaris, which I like to export. The table contains a column which is of IMAGE type and it contains very long text ( 100000+ chars). I'm not able to export it properly, because isql splits the lines in…
taiko
  • 438
  • 1
  • 6
  • 18