Quote:
Originally Posted by domusonline
Typical customer environments may have isql (Informix SQL) which is a client tool (text mode).
There are also other tools that can run SQL against a remote database like sqlcmd which is available at the IIUG software repository (IIUG = International Informix User Group).
Regards.
|
Thanks, good info.
Further the question is that : How can I detect which client can be used for running my script against remote server.
Currently my script is using dbaccess with following syntax. Some one raised question, what if dbaccess is not available ??
Code:
dbaccess - conn.sql run.sql >${sub_out} 2>&1
conn.sql is prepared at run time having a line like
Code:
connect to 'sysmaster$ifx040' user 'dbfinder' using 'dbfound';
Where as run.sql contains various SQL scripts as needed.
So next task is to detect existance of 1) dbaccess 2) isql 3) sqlcmd . . . x) xsql,
so that the script can choos a client to continue instead of aborting !!
Thanks for help
DBFinder