April 25th, 2013, 09:17 PM
Invoke db2 Command Line Processor from c# application
I am very new to db2.
Currently i would like to list all the database exist in db2 server using c# application.
As far as i know, the only way to list all the database is using db2 Command Line Processor to call "LIST DB DIRECTORY".
However, i would like to know is there anyway to invoke CLP to call this command from c# application or list all the database using SQL SELECT STATEMENT?
Error i got when call CLP to run "List db Directory" is
"The Character \"\" following \"\" is not valid. SQLSTATE:42601, SQLCode:-7".
ANYONE HAVE DONE THIS BEFORE ??? PLEASE HELP !!!