February 1, 2006 at 9:16 am
Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/rVasant/usingopenxmlpartii.asp
February 16, 2006 at 12:22 am
Great article. Have you tried this in real world application especially in web application.
Thanks!
February 16, 2006 at 2:09 am
thnx.
I have not tried this in a web application...
but i think it will work the same way... coz this will technique will be useful if you are calling sp's from one another...
February 16, 2006 at 2:24 am
I actually tried this in a .NET Web Application before. I want to insert data in one database call from the a web application.
My big problem with this is the OutOfMemory error/exception when assigning the XML string to a string variable. This problem occurred if the datasource is too large (50,000 thousands record, 30 columns). That string variable is suppose to be passed the stored procedure. Haven't solve this problem and I have to revert back to old way of looping and call a database insert.
What way do you use OpenXML?
February 16, 2006 at 5:35 am
Great idea!! I hadn't thought to try this. I wish i had read this a couple years back. It would really have been helpful in a few situations
February 16, 2006 at 10:45 am
I Need uploading an XML file to SQL Server... The scipt should use MS SQL Server Bulk import capability (OpenXML)...How can i do this.
February 16, 2006 at 4:25 pm
Thank you. One of those "obvious when you think about it for more than a couple of minutes" situations, but aren't they they the best sometimes?
Good tip.
February 16, 2006 at 9:48 pm
You can store your XML data into your database tables by defining a column of VARCHAR type.
You use OPENXML if you want to query your XML data.
April 17, 2006 at 3:37 pm
Excellent article, congratulations...
Antonio Hernández
April 17, 2006 at 3:55 pm
Muthukkalavalli,
What you are probably after is the SQLXMLBulkLoad tool, available as a separate download. There's a How-to article at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sqlxml3/htm/bulkload_6bos.asp and several other resources at other pages. Search for SQLXMLBulkLoad.
Good luck
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply