Click here to Skip to main content
16,016,736 members
Please Sign up or sign in to vote.
2.20/5 (3 votes)
See more:
select in xml file or select in sql server

Which is better؟
Posted

You're comparing apples to oranges. XML is not a database engine and is not designed to store relational data.

The answer to your question you're asking is highly dependent on may factors, not the least of which is the size of your dataset and what you're doing with it.

Your question also has absolutely nothing to do with ASP.NET.
 
Share this answer
 
v2
1) This question has nothing to do with .Net.
2) There is no clear answer.
If the xml file is a very large file that is fetched over the network, a SQL query might be faster.
If the xml file is small and cached locally, select in xml will be faster.
There could be many other factors playing a part here as well.
 
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