Re: JDBC vs Hibernate
- From: Luke Webber <luke@xxxxxxxxxxxxx>
- Date: Sat, 10 Sep 2005 00:10:53 +1000
Sandy wrote:
How about using OPENXML vs JDBC (performance wise) I read somewhere that OPENXML is faster, (I have the XML file in memory already, my application is generating an XML file)
Is it a better option than writing data Row by Row in tables.
So I can use it likle this String exec = "DECLARE @_hDoc int "+ "EXEC sp_xml_preparedocument @_hDoc OUTPUT, "+ "N'<ROOT> "+ " <DataSource Device=\"D1\" Community=\"PUBLIC\" > "+ " </DataSource> "+ "</ROOT>'" + "INSERT DataSource SELECT * FROM OPENXML(@_hDoc, N'/ROOT/DataSource') WITH DataSource "+ "EXEC sp_xml_removedocument @_hDoc";
Statement s = connection.createStatement();
I haven't the faintest idea. FWIW, I'm not at all convinced that it's a good idea to store raw XML in a database except in very limited cases.
If you want to discuss JDBC vs OpenXML, I suggest you start a new thread. Perhaps somebody with OpenXML qualifications will see fit to make a contribution.
Luke .
- References:
- JDBC vs Hibernate
- From: Sandy
- Re: JDBC vs Hibernate
- From: Luke Webber
- Re: JDBC vs Hibernate
- From: Sandy
- Re: JDBC vs Hibernate
- From: Luke Webber
- Re: JDBC vs Hibernate
- From: Sandy
- JDBC vs Hibernate
- Prev by Date: Convert Japanese UTF8 to SJIS for Sybase
- Next by Date: url to connect an applet to mysql on a virtual hosting environment
- Previous by thread: Re: JDBC vs Hibernate
- Next by thread: Re: JDBC vs Hibernate
- Index(es):
Relevant Pages
|
|