Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Upload XML
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

240 Posts

Posted - 05/01/2013 :  10:02:59  Show Profile  Reply with Quote
Hi All,

We have a requirement to upload XML, Just wanted to check if I should pursue with SQL or shall I create program in ASP.NEt

PLease suggest

James K
Flowing Fount of Yak Knowledge

3873 Posts

Posted - 05/01/2013 :  10:40:43  Show Profile  Reply with Quote
By uploading I assume you mean loading data from an XML file into a SQL database. For this purpose, you can use a T-SQL solution, or you can use a .Net solution. Probably T-SQL using BULK INSERT would be faster. There are examples on this page
Go to Top of Page

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 05/02/2013 :  01:35:28  Show Profile  Reply with Quote
if you just wanted to upload XML value as it is into XML typed columns, use OPENROWSET...BULK option as suggested in link above

if your attempt is to shred the data from XML onto columns in the sql table you should use nodes(),query() etc methods

SQL Server MVP
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000