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

Can't Connect to SQL Server on Mac

I've followed these instructions (exchanging the dummy variables where necessary) and can't get pass the step where you run with isql. The FreeTDS driver seems to be working (though instead of getting a CLI it just starts counting upwards), but I…
James Kelleher
  • 1,507
  • 2
  • 13
  • 28
0
votes
1 answer

Output data to file using Isql sybase

I am using below command to write data to csv file in isql $ISQL -S DSA1_PROD -U emer_r_gh5432 -X Query - Select * from SecDb..LoginOwnerTb where SvrId= 45566 and OwnerRitsId = '1001167635'; OUTPUT TO '/tmp/sometable.csv' FORMAT ASCII…
user662285
  • 3,436
  • 22
  • 68
  • 100
0
votes
3 answers

Export CSV from Mainframe DB2 in batch mode

how can I export in a CSV file the result of a SELECT query from Mainframe DB2 in Batch mode? I have tried the FILE MANAGER online mode and it works but I need to use the batch mode for a better performance. I can also use ISQL but I don't know…
Nello
  • 1
  • 1
  • 3
0
votes
0 answers

is an inner member of an outer-join clause. This is not allowed if the table also participates in a regular join clause

I have a below working query: `select distinct t1.ExNo, t3.ExDesc from table1 t1 left join table2 t2 on t1.ExNo = t2.ExNo join table3 t3 on t3.ExTyp = case when t1.ExTyp = 'CONT' and t2.ExTyp is not null then t2.ExTyp else…
user7392087
  • 21
  • 1
  • 7
0
votes
1 answer

Need SQL query for the given scenario

Could you please help to get this sort it out? I need SQL query for below requirement. I have three tables below. Table1 -------- ExNo | ExTyp ------------- 1000 | CONT 2000 | REPO 3000 | COMD 4000 | CONT Table2 ------ ExNo |…
user7392087
  • 21
  • 1
  • 7
0
votes
1 answer

Error IM002 with isql but odbc.ini and odbcinst.ini exist

I'm currently installing a virtuoso server on my Mac OS X. However I got an error when I run the isql command: isql -v 1111 dba dba [IM002][unixODBC][Driver Manager]Data source name not found, and no defaul driver specified [ISQL]ERROR: Could…
Cyril
  • 435
  • 3
  • 13
0
votes
1 answer

PERL: Regular Expression for reading Social Security # with Dashes

I am writing a perl script that reads Social Security numbers from a file, looks up info across multiple tables and outputs to a delimited file. I'm writing with PERL 5 and dealing with IBM informix. I have the feeling that it is my REGEX that is…
Jim
  • 29
  • 6
0
votes
0 answers

Formatting Sybase Resultset into specific amount of columns

I have a sybase query in a shell script that is only supposed to produce 2 columns in the result set. I save the result set into a variable then send that output to a file.…
Mr. C
  • 43
  • 8
0
votes
1 answer

when use isql,i got this: [IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified

when i type fllow command: isql dsnOracle -v i got : [IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified [ISQL]ERROR: Could not SQLConnect my config file: [root@localhost lib]# cat…
i love jack
  • 109
  • 3
  • 9
0
votes
1 answer

Connect to sybase IQ with dbisql pop the error The DISPLAY environment variable is not set

My purpose is connect to sybase IQ with dbisql OS:Linux XIYL50837198A 3.0.101-84-default #1 SMP Tue Oct 18 10:32:51 UTC 2016 (15251d6) x86_64 x86_64 x86_64 GNU/Linux My sybase IQ version is 16-1 My installation information: install set:…
0
votes
1 answer

Segmentation Fault when using isql for ODBC connection to Progress Openedge database 10.2B

OS: Red Hat 4.1.2-54 Linux 2.6.18-92.el5 #1 SMP Tue Jun 10 18:49:47 EDT 2008 i686 i686 i386 GNU/Linux Progress OpenEdge Database Release 10.2B on Linux 32 bit ODBC Driver: pgoe1023.so (which was available with the database package) export…
jsharma
  • 41
  • 4
0
votes
1 answer

Oracle iSQL function issue

EDIT: i have changed my code now. I have a problem with my function i get no errors when creating the function and i can run a basic version of the function i made with no problems but when i call the entire function i get blank rows. this version…
Edwin Martin
  • 189
  • 12
0
votes
1 answer

Display the title and year of all non SH and non CH films that were produced in the same year as any of the SH or CH videos were produced

Ok so I am having some issues with a SQL question. I have some code for the previous question and I feel that it has to be implemented with this question in some way. SELECT m1.production_year, m1.title FROM movie m1 WHERE EXISTS (SELECT 1 FROM…
0
votes
1 answer

Sybase round not working as expected

Below is my scenario. We are retrieving data from Sybase. We are using putty to achieve this since we do not have direct access to Sybase. From the inner query, i am getting value as 6.500000 for a metric. But in the outer query, when i apply Round…
Darshan
  • 1
  • 2
0
votes
2 answers

0403-057 Syntax error at line 43 : `<' is not matched

I am receiving below error 0403-057 Syntax error at line 43 : `<' is not matched. for below isql connection object on AIX server. isql -Uusername -Sserver -Ppassword -w 5000 -s"|" << EOF >>$LOG I have looked for various spacing options but all…
Preeti Maurya
  • 431
  • 5
  • 16