Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

importing xml that has dtd into an sql 2005 table

 
   Database Forums (Home) -> Data Warehouse RSS
Next:  Ye olde 0x80041010 error  
Author Message
Dee7

External


Since: Sep 09, 2004
Posts: 41



(Msg. 1) Posted: Tue Jan 22, 2008 5:38 pm
Post subject: importing xml that has dtd into an sql 2005 table
Archived from groups: microsoft>public>sqlserver>datawarehouse (more info?)

Hello,

I am trying import the data and column names from an xml file into an sql
2005 table. This is what I have used.


DECLARE @xml XML;
CREATE TABLE Products(xmlCol XML)
INSERT Products
SELECT CONVERT(XML, BulkColumn, 2)
FROM OPENROWSET (BULK 'C:\database\xmldtd\yahoostore.xml', SINGLE_BLOB) AS
Products

This creates the table, and inserts one column which takes a long time to
open, but seems to be empty.

Can anyone give me any suggestions? The xml file has dtd which I used the
convert for, but how do I get the columns and information from those colums.
This is xml file 93.2 mb. Is it too large?

Thank you
Dee

 >> Stay informed about: importing xml that has dtd into an sql 2005 table 
Back to top
Login to vote
ML

External


Since: Mar 30, 2006
Posts: 121



(Msg. 2) Posted: Wed Jan 23, 2008 8:05 am
Post subject: RE: importing xml that has dtd into an sql 2005 table [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

How have you verified that the table is empty?

Regarding XML data size: 2GB is the limit.


ML

---
Matija Lah, SQL Server MVP
http://milambda.blogspot.com/

 >> Stay informed about: importing xml that has dtd into an sql 2005 table 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
creating a partition table in developer edition (2005) - Hi Guys, I have 2 environments i work on , one is SQL server 2005 enterprise edition and the other is developer edition (both with Service Pack). i have a scripts creating a partition table who runs well on the Enterprise version but when i run it over....

Importing tables from Access to SQL Server - I've inherited a project which has numerous fields that have extra spaces in them -- this is causing a problem with data Inserts, Edits, and Deletions in my .ASP Website. I'm importing data tables from ACCESS 2003 into SQL Server 2005, and I need to....

using OLAP on sql server 2005 -

SQL 2005 Analysis Memory requirement - Hello everyone, We are planning to purchase hardware for Analysis Server. I want to see what configuration everyone is using for the Analysis Server. How much RAM on your server, how many processors, size of the cub, Server edition, etc... Someone....

How to reinstall the Business Intelligence Project in VS 2.. - after I install the VS 2008, my business intelligence project under VS 2005 was missing. Is it possible to reinstall the Business Intelligence project under VS2008? How?
   Database Forums (Home) -> Data Warehouse All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]