Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have to import xml document having size more than 10GB in Sql Server database. i also have to do XSD Validation before Processing and maintain transaction. Please suggest me the best way to do the same. should i use SSIS packege? is it capable of Processing such large document? or Do i have to use c# coding to accomplish this task?
Posted
Comments
Tarun.K.S 18-Apr-11 7:03am    
10 GB!!! *falls to the ground*
Jeffrey Enzo 18-Apr-11 7:27am    
Whooo 10GB, probably you must split your XML file into 1 GB size

You could try using SSIS, hope it will help you. Otherwise split your XML file into 1 GB files.

http://msdn.microsoft.com/en-us/library/ms140277.aspx[^]

http://blogs.msdn.com/b/rdoherty/archive/2005/03/16/396956.aspx[^]
 
Share this answer
 
In addition to Jeffrey's answer, if you are considering about splitting your XML file, then check out this article :

http://www.codeproject.com/KB/XML/SplitLargeXMLintoSmallFil.aspx#xx2994884xx[^]

or google this : Google's result[^]
 
Share this answer
 
is there any solution example in MS SQL .

i have a only more than 2 gb xml file .

i am unable to import in my data base .

through the MS SQL .

i am getting the error .


"
Msg 6365, Level 16, State 1, Line 1
An XML operation resulted an XML data type exceeding 2GB in size. Operation aborted.

"

SQL
declare @xmlStr xml


SELECT @xmlStr = REPLACE(REPLACE(BulkColumn,CHAR(10),''),CHAR(13),'')
FROM OPENROWSET(BULK 'C:\xmldownload\adzunajobfeeds.xml', SINGLE_BLOB) AS X

select @xmlStr
 
Share this answer
 
Comments
CHill60 20-Mar-15 6:18am    
Don't post questions as solutions to other questions.
Both of the solutions already given related to MS SQL - try them.
If you have a question of your own to post use the "Ask a Question" link at the top of the page

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900