Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / February 2006

Tip: Looking for answers? Try searching our database.

Pb load command JDBC driver

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lm - 21 Feb 2006 17:57 GMT
Hi,

How can i use JDBC driver to load some datas from DB2 DBMS with the load
command
and a specific delimiter ?
Can u give me a sample ?
[please i'm a newbie and it's very important]

Best regards
Eugene F - 21 Feb 2006 18:07 GMT
There is no java API to DB2 load facility, only C/C++.

-Eugene
Knut Stolze - 21 Feb 2006 18:18 GMT
> There is no java API to DB2 load facility, only C/C++.

You could wrap the call to the LOAD in a (C/C++) stored procedure and invoke
the procedure through the usual means.  But that would require that the
file to be loaded resides on the database server.

Otherwise, you have to resort to JNI or so...

Signature

Knut Stolze
DB2 Information Integration Development
IBM Germany

Eugene F - 21 Feb 2006 19:23 GMT
Some time back there was a promise to publish a SQL API to the LOAD as
part ADMIN_CMD procedure along with SQL calls to EXPORT, RUNSTATS etc ,
but it's still not there with the current V8fp11, may be in Viper?
Making call from java to a SQL stored proc like that would be much
easier that using C/C++ API or a JNI wrapper to LOAD (IMHO).

-Eugene
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.