473,387 Members | 1,440 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

XML load

I created a reference in my project to SQLXMLBULKLOADLib.

Then I create an instance:

SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class bulkLoadObj = new
SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class();

bulkLoadObj.Execute("c:/data.xsd", "c:/data.xml");

and i get the following error message:

'SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class' to interface type
'SQLXMLBULKLOADLib.ISQLXMLBulkLoad'. This operation failed because the
QueryInterface call on the COM component for the interface with IID
'{1380DD8D-DCB9-4A6E-9D53-EECDDF18DA85}' failed with HRESULT: 0x80004002 (No
such interface supported (Exception from HRESULT: 0x80004002
(E_NOINTERFACE))).

What should I do?
Does anybody know the other way to insert xml into database?
Regards,S
Nov 17 '05 #1
4 6085
I believe you are creating the wrong class it should be:

SQLXMLBULKLOADLib.SQLXMLBulkLoad3 bulkLoadObj = new
SQLXMLBULKLOADLib.SQLXMLBulkLoad3Class();

Check out the following link:

http://www.dbazine.com/sql/sql-articles/cook3

HTH

Ollie Riches
"simon" <si*********@stud-moderna.si> wrote in message
news:ua**************@TK2MSFTNGP15.phx.gbl...
I created a reference in my project to SQLXMLBULKLOADLib.

Then I create an instance:

SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class bulkLoadObj = new
SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class();

bulkLoadObj.Execute("c:/data.xsd", "c:/data.xml");

and i get the following error message:

'SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class' to interface type
'SQLXMLBULKLOADLib.ISQLXMLBulkLoad'. This operation failed because the
QueryInterface call on the COM component for the interface with IID
'{1380DD8D-DCB9-4A6E-9D53-EECDDF18DA85}' failed with HRESULT: 0x80004002
(No such interface supported (Exception from HRESULT: 0x80004002
(E_NOINTERFACE))).

What should I do?
Does anybody know the other way to insert xml into database?
Regards,S

Nov 17 '05 #2
that is the older version. I don't have this version on my computer.

With Visual studio beta2, version 4 came.

regards,
Simon

"Ollie Riches" <ol**********@phoneanalyser.net> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
I believe you are creating the wrong class it should be:

SQLXMLBULKLOADLib.SQLXMLBulkLoad3 bulkLoadObj = new
SQLXMLBULKLOADLib.SQLXMLBulkLoad3Class();

Check out the following link:

http://www.dbazine.com/sql/sql-articles/cook3

HTH

Ollie Riches
"simon" <si*********@stud-moderna.si> wrote in message
news:ua**************@TK2MSFTNGP15.phx.gbl...
I created a reference in my project to SQLXMLBULKLOADLib.

Then I create an instance:

SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class bulkLoadObj = new
SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class();

bulkLoadObj.Execute("c:/data.xsd", "c:/data.xml");

and i get the following error message:

'SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class' to interface type
'SQLXMLBULKLOADLib.ISQLXMLBulkLoad'. This operation failed because the
QueryInterface call on the COM component for the interface with IID
'{1380DD8D-DCB9-4A6E-9D53-EECDDF18DA85}' failed with HRESULT: 0x80004002
(No such interface supported (Exception from HRESULT: 0x80004002
(E_NOINTERFACE))).

What should I do?
Does anybody know the other way to insert xml into database?
Regards,S


Nov 17 '05 #3
CG
See:

Note The SQLXML Bulkload component will not run in a multithreaded
environment ('[MTAThread]' attribute). If so, you receive an
InvalidCastException exception with the additional information:
QueryInterface for interface SQLXMLBULKLOADLib.ISQLXMLBulkLoad failed. The
workaround is to make the object that contains the bulkload object be
single-thread accessible (for example using the [STAThread] attribute as
shown in the sample).

"simon" <si*********@stud-moderna.si> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
that is the older version. I don't have this version on my computer.

With Visual studio beta2, version 4 came.

regards,
Simon

"Ollie Riches" <ol**********@phoneanalyser.net> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
I believe you are creating the wrong class it should be:

SQLXMLBULKLOADLib.SQLXMLBulkLoad3 bulkLoadObj = new
SQLXMLBULKLOADLib.SQLXMLBulkLoad3Class();

Check out the following link:

http://www.dbazine.com/sql/sql-articles/cook3

HTH

Ollie Riches
"simon" <si*********@stud-moderna.si> wrote in message
news:ua**************@TK2MSFTNGP15.phx.gbl...
I created a reference in my project to SQLXMLBULKLOADLib.

Then I create an instance:

SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class bulkLoadObj = new
SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class();

bulkLoadObj.Execute("c:/data.xsd", "c:/data.xml");

and i get the following error message:

'SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class' to interface type
'SQLXMLBULKLOADLib.ISQLXMLBulkLoad'. This operation failed because the
QueryInterface call on the COM component for the interface with IID
'{1380DD8D-DCB9-4A6E-9D53-EECDDF18DA85}' failed with HRESULT: 0x80004002
(No such interface supported (Exception from HRESULT: 0x80004002
(E_NOINTERFACE))).

What should I do?
Does anybody know the other way to insert xml into database?
Regards,S



Nov 17 '05 #4
If I am not mistaken the multithreaded functionality is new to 4.0 at
least that's what I have read. I am having the same problem as the
original post and would really like some type of solution. I have
databases that I need to sync up with 30,000+ records so going row by
row is out of the question. THanks for any help.

CG wrote:
See:

Note The SQLXML Bulkload component will not run in a multithreaded
environment ('[MTAThread]' attribute). If so, you receive an
InvalidCastException exception with the additional information:
QueryInterface for interface SQLXMLBULKLOADLib.ISQLXMLBulkLoad failed. The
workaround is to make the object that contains the bulkload object be
single-thread accessible (for example using the [STAThread] attribute as
shown in the sample).

"simon" <si*********@stud-moderna.si> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
that is the older version. I don't have this version on my computer.

With Visual studio beta2, version 4 came.

regards,
Simon

"Ollie Riches" <ol**********@phoneanalyser.net> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
I believe you are creating the wrong class it should be:

SQLXMLBULKLOADLib.SQLXMLBulkLoad3 bulkLoadObj = new
SQLXMLBULKLOADLib.SQLXMLBulkLoad3Class();

Check out the following link:

http://www.dbazine.com/sql/sql-articles/cook3

HTH

Ollie Riches
"simon" <si*********@stud-moderna.si> wrote in message
news:ua**************@TK2MSFTNGP15.phx.gbl...
I created a reference in my project to SQLXMLBULKLOADLib.

Then I create an instance:

SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class bulkLoadObj = new
SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class();

bulkLoadObj.Execute("c:/data.xsd", "c:/data.xml");

and i get the following error message:

'SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class' to interface type
'SQLXMLBULKLOADLib.ISQLXMLBulkLoad'. This operation failed because the
QueryInterface call on the COM component for the interface with IID
'{1380DD8D-DCB9-4A6E-9D53-EECDDF18DA85}' failed with HRESULT: 0x80004002
(No such interface supported (Exception from HRESULT: 0x80004002
(E_NOINTERFACE))).

What should I do?
Does anybody know the other way to insert xml into database?
Regards,S



Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ray in HK | last post by:
What are the differences between LOAD DATA INFILE and LOAD DATA LOCAL INFILE ? I found some web hosting company do not allow using LOAD DATA INFILE but allow LOAD DATA LOCAL INFILE. The reason...
6
by: JS | last post by:
EE instance DB2 v7.2.0 fixpack 3 on WIN2K. I select some data from a table A and write it to a file using the COALESCE function and whitespace as the null character: eg coalesce(col1, ' '). This...
2
by: **Developer** | last post by:
I have a Form (FV&C) containing a userconrtrol (CF&E) I do a ShowDialog for the form and the form's Load calls a method of the UserControl. The first time I do this the usercontrol appears on...
3
by: db2udbgirl | last post by:
Env: DB2 UDB 8.2, AIX 5.3 While trying to load data (73 Million rows, Medium size table uses 4K tablespace) into a table using cursor it fails with "SQL0964C The transaction log for the database...
1
by: dbagirltx | last post by:
We have done some testing with mixed and forgotten results. So I'm hoping that asking here can clarify some issues for us. Right now we do one weekly warm backup. Throughout the week there are...
1
by: huyuhui | last post by:
The following is a question of LOAD utility. Question: How does the DB2 enforce table check constraints for data added to table with the LOAD utility? A. With the BUILD phase of LOAD B. With the...
2
by: contractsup | last post by:
Environment: $ uname -a AIX <withheld2 5 000100614C00 $ db2level DB21085I Instance "<withheld>" uses "32" bits and DB2 code release "SQL08024" with level identifier "03050106"....
5
by: danfan46 | last post by:
Hi. I'm on DB2 9.5.0.1 on Linux AMD 64 and the database has four partitions where catalog is on partion 0 and user data on 1 thru 3. After a load failure (path to load file was wrong) I...
2
by: David Thielen | last post by:
So we have moved our app from .NET version 2.X in IIS6 to a Windows 2008 Server running IIS7. We have copied all files to the Windwardreports\apps directory and that apps directory has been...
13
by: rdudejr | last post by:
Hi all, I hardly ever make a post unless I am having a very purplexing issue, so this one should be good... I am trying to do a load against a database on an AIX server into a DB2 v9.1...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.