sql server - Storing XML in Database -


our system comprises of various components. data flow in system in form of xml . each component process xml , , add content , , pass next component.

i want store xml versions.the xml size 250-300 kb . there 20 versions of xml 1 single transaction.also transactions in millions.

am looking alternatives of storage of kind of xml data .what if store xml in db. efficient way?

also , if store xml in db , there way search xml based on it's content . , how efficient be.

any thoughts help.

since data flows going in small chunks of 250-300 kb, makes sense save them in db xml or nvarchar (max) field, marc mentioned can store upto 2gb data.the xml data type validate xml formed, have advantage well. can consider index xml column, if retrieving large xml data. further, can able take advantage of xquery language search xml content. in terms of efficient, if storing xml files, keeping in files sytem folder work well, otherwise store in database. hope helps


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -