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
29
votes
12 answers

From a Sybase Database, how I can get table description ( field names and types)?

I have access to command line isql and I like to get Meta-Data of all the tables of a given database, possibly in a formatted file. How I can achieve that? Thanks.
aartist
  • 2,853
  • 3
  • 29
  • 28
22
votes
3 answers

FreeTDS working, but ODBC cannot connect

I am trying to run connect to a MSSQL server from an Ubuntu 12.04 webserver with FreeTDS and unixODBC. Using tsql i can connect to the server with ~$ tsql -S dbs3 -U -P No problem there. When I try to connect with isql…
AndMim
  • 550
  • 1
  • 3
  • 11
22
votes
4 answers

Informix SQL - List all fields & tables

Informix iSQL has a command "info tables;" that shows all tables. The syntax for viewing the fields and their respective data types is "info columns for table;" Is there a similar command that shows table.field for all tables and all fields?
CheeseConQueso
  • 5,493
  • 25
  • 84
  • 126
8
votes
2 answers

Executing a script using ISQL

I'm creating a simple isql script but it's not working and I need some help to find out whats wrong with it. I need to connect to a database and execute a SQL file. This is my script called script.sql: CONNECT…
user729661
  • 81
  • 1
  • 1
  • 2
8
votes
2 answers

Can't connect to local Firebird with ISQL

I'm trying to setup a local firebird instance to test against but am unable to connect to it with even ISQL. I have tried to following by following the quick start guide here: CONNECT ..\examples\empbuild\employee.fdb user SYSDBA password…
Luke Chamberlain
  • 400
  • 2
  • 4
  • 14
7
votes
8 answers

How to output data from iSQL to csv file _with_ headings?

I'm trying to query a Sybase ASA 8 database with the iSQL client and export the query results to a text file in CSV format. However the column headings are not exported to the file. There is no special option to specify that, neither in the iSQL…
Oliver Jakoubek
  • 376
  • 1
  • 2
  • 6
6
votes
1 answer

FreeTDS - tsql connects, isql fails

I'm trying to connect to a database on my host machine (windows xp, sql server 05). My guest machine is Ubuntu 10.04. I can connect and execute commands with tsql, but isql fails. Below are my config files and error messages. freetds.conf text…
recursive_acronym
  • 2,811
  • 5
  • 36
  • 56
5
votes
1 answer

3 Tables, 2 Databases, 1 Server... How to Join? (SQL/Informix)

I need to formulate a single query to do the following: 1) Join two (informix) SQL tables on the same server(already done/working) 2) Join a third SQL table on the same server, but in a different database. For my example code, let's use tableA and…
Andrew Coder
  • 1,028
  • 7
  • 13
5
votes
2 answers

How do I create a new Firebird database from the command line?

I'd like to create a new Firebird database in my C# client application. Is there a command line utility that lets you do this?
dthrasher
  • 36,940
  • 32
  • 104
  • 137
5
votes
4 answers

How I can find the list of Sybase Indexes for a given database?

How I can find the list of Indexes for a given database in Sybase?
aartist
  • 2,853
  • 3
  • 29
  • 28
4
votes
1 answer

Resolving database connection errors like this: [ISQL]ERROR: Could not SQLConnect

What does this error typically mean? I searched around for it on Google, but got a bunch of junk pages with no solutions or answers. How can I go about resolving this particular error message?
Genadinik
  • 16,715
  • 59
  • 170
  • 277
4
votes
3 answers

Firebird 3 on macOS, local connection fails with: Can not access lock files directory /tmp/firebird/

I've installed firebird 3.0 from the package provided by firebirdsql.org. If I try to use a local connection to a database: isql employee -user SYSDBA it fails with: Can not access lock files directory /tmp/firebird/ So adding read/write/execute…
jonjonas68
  • 485
  • 3
  • 13
4
votes
3 answers

Unable to connect to MS-SQL with ISQL

First post on StackExchange - please go easy :) I have setup ODBC in Centos 6 in order to perform ms-sql queries from my Asterisk installation. My Config files are: /etc/odbc.ini [asterisk-connector] Description = MS SQL connection to…
massiveattack
  • 41
  • 1
  • 1
  • 6
4
votes
2 answers

Firebird iSQL - How to input SQL query from command line, and retrieve output in simpler format

I'm using Firebird's isql.exe tool to query an existing database: isql -u -p -i -o which reads my SQL statements from file.sql and saves the results to output.txt. But is there a way to feed…
Obay
  • 3,053
  • 12
  • 49
  • 74
4
votes
1 answer

firebird isql: "there is no table XXXX in this database"

I am trying to extract data from a Firebird 2.5 SQL database for migration. The data has been built up over a long period through software that has the Firebird 2.5 database embeded - and the software company is not being helpful in allowing access…
Dzseti
  • 375
  • 1
  • 5
  • 16
1
2 3
11 12