Hello, I've just started to work with DB2 (using the express edition
version 9.5 under windows vista) and I'm accessing it through a java
program (my java's very rusty). The java program loads the driver,
connects and tries to create two tables. That works just fine. Then it
tries to import data into one of the tables but it seems I can't use
an import command with Statement.execu te() because an exception is
thrown if I attempt to do this.
Is this possible and, if so, how?
Here's the acutal call that triggers the exception:
statement.execu te("IMPORT FROM 'C:/staff.xml.xsd' OF DEL METHOD P(1)
MESSAGES 'C:/messages.txt' INSERT INTO STAFF_AS_XML
(STAFF_AS_XML_C OL);");
One of the tables has a single xml column and I have an xml-file I
want to import to that table from the java program. The command works
under control center (but not always, which is weird, but that is a
separate issue).
Thanks for reading and thanks for any replies.
version 9.5 under windows vista) and I'm accessing it through a java
program (my java's very rusty). The java program loads the driver,
connects and tries to create two tables. That works just fine. Then it
tries to import data into one of the tables but it seems I can't use
an import command with Statement.execu te() because an exception is
thrown if I attempt to do this.
Is this possible and, if so, how?
Here's the acutal call that triggers the exception:
statement.execu te("IMPORT FROM 'C:/staff.xml.xsd' OF DEL METHOD P(1)
MESSAGES 'C:/messages.txt' INSERT INTO STAFF_AS_XML
(STAFF_AS_XML_C OL);");
One of the tables has a single xml column and I have an xml-file I
want to import to that table from the java program. The command works
under control center (but not always, which is weird, but that is a
separate issue).
Thanks for reading and thanks for any replies.
Comment