SAP Sybase IQ16.0 (Sybase Central 客户端),提供一个命令行客户端

时间:2021-03-21 17:41:10

最近又发现Sybase Central客户端(java客户端)从IQ16.0里头去掉了. 新客户端或许只能用SCC?!

对于老用户来说,无疑是比较痛苦的事.

看来,只能从IQ15.4或者15.3里头摘一个客户端出来用了.


既然如此,我索引用SDK库手写了一个命令行客户端,

这是一个非常小而精致的IQ命令行客户端,有意思的是它也能用在ASA12及以上版本的ASA数据库当中.这就是魅力所在.
用法,将其放到IQ或者ASA的Bin32子目录下边,进到此目录:sasql <连接串>

用法如下:

用法如下:

C:\ScjviewIQ16\IQ-16_0\Bin32>sasql.exe "uid=dba;pwd=sql;links=tcpip(host=mega-vm
014:2638;verifyservername=no)"
The conn string is: uid=dba;pwd=sql;links=tcpip(host=mega-vm014:2638;verifyserve
rname=no)
Successfully connected.  Welcome using sasql for SQLAnywhere Database.sasql vers
ion 1.0.1 command line utility for SA database
Copyright 2011 iihero & SpringTech, Inc.
Enter ".help;"  for instructions
Enter SQL statements terminated with a ";"
sasql> .help;
.exit;                  Exit this program
.quit;                  Exit this program
.help;                  Print the help menu
.read <sql file>;       Read and execute a sql file
<sql statement>;        Execute a sql statement

sasql>

每个命令都以;结束.

sasql> call sp_tables();
Estimated number of rows: -346
table_qualifier,table_owner,table_name,table_type,remarks
---------------------------------------------------------
'iqdemo','SYS','ISYSTAB','SYSTEM TABLE',(NULL)
'iqdemo','SYS','ISYSTABCOL','SYSTEM TABLE',(NULL)
'iqdemo','SYS','ISYSOBJECT','SYSTEM TABLE',(NULL)
'iqdemo','SYS','ISYSIDX','SYSTEM TABLE',(NULL)
'iqdemo','SYS','ISYSPHYSIDX','SYSTEM TABLE',(NULL)

..............

---------------------------------------------------------
346 rows returned


Warning: [105] 'Procedure has completed'
Total elapsed time = 281ms


还可以执行一个sql文件.别的功能日后再行扩充,先就写这么多.

下载地址:

http://download.csdn.net/detail/iihero/7072717