troubleshooting Question

Loading XML File into SQL 2008

Avatar of Jordan_WM
Jordan_WM asked on
XMLMicrosoft SQL Server 2008
2 Comments1 Solution319 ViewsLast Modified:

I very new to loading XML files into SQL Server 2008 and trying to understand what would be the best solution to do this. I have been presented with an CXML which is 4gigs and a XSD file. I have been able to load the XML file into a table with a XML column as shown below in the following script.

SELECT 10, xCol
FROM    (SELECT *    
 AS xCol) AS R(xCol)

What I am now trying to understand is how get the data elements out of the XML column, is there a way I can leverage the XSD file creating an assembily, creating another table to hold the XSD information or hard code the data elements to get into in SQL query to parse out the values and get into SQL tables.


Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros