最近又發現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