|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Wednesday, May 08, 2013 7:23 AM
Points: 199,
Visits: 136
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Monday, April 17, 2006 7:10 PM
Points: 2,
Visits: 1
|
|
Great article. Have you tried this in real world application especially in web application. Thanks!
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Wednesday, May 08, 2013 7:23 AM
Points: 199,
Visits: 136
|
|
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...
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Monday, April 17, 2006 7:10 PM
Points: 2,
Visits: 1
|
|
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?
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Wednesday, December 31, 2008 10:25 AM
Points: 42,
Visits: 3
|
|
| 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
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, January 23, 2007 12:50 PM
Points: 4,
Visits: 1
|
|
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.
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Thursday, May 02, 2013 2:13 AM
Points: 362,
Visits: 324
|
|
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.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Wednesday, May 08, 2013 7:23 AM
Points: 199,
Visits: 136
|
|
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.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Monday, April 17, 2006 3:33 PM
Points: 1,
Visits: 1
|
|
Excellent article, congratulations...
Antonio Hernández
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Thursday, May 02, 2013 2:13 AM
Points: 362,
Visits: 324
|
|
|
|
|