Click here to Skip to main content
15,923,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to insert,update,delete by using store procudure... should I direct insert,delete,update to store procedure or using xml to help...? which one is better? why? Thank for reading....waiting to hearing from you soon... :)
Posted

1 solution

There isn't a hard and fast answer to your question. But I'd say rarely, because you lose the power of the database in keeping data integrity and the ability to query against the data etc. That said, like most things, sometimes the benefits of storing the XML outweigh the disadvantages, e.g.


  1. You want to store XML documents for future use rather than fixed data structures - for example if an application is processing XML anyway(say remote calls)
  2. The data's structure is open to rapid or repeated change to the point where re-definining the equivalent relational tables is cumbersome. Especially true if no querying is needed.


Obviously other circumstances exist. One situation I have seen XML store legitmately was the long-term persistance of a custom user state object that was open to rapid change as the site developed (the XML had versioning and old versions were likely). We never needed to query "how many users in state X" etc, so serializing to XML and storing that was a good option.
 
Share this answer
 

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