Click here to Skip to main content
16,014,940 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to compare 2 excel files that have different structure? Which one better to solve this problem, using C# or SQL Server 2008 R2. Thank-you.
Posted
Comments
Jochen Arndt 13-Jan-16 4:37am    
This is a problem of the compare algorithm. Once that is defined, it should be possible to implement that in any language (while SQL does not seem to be the best option).

Because we don't know the possible structures of your files and the comparison requirements, this can't be answered here.
DeDenker 13-Jan-16 5:39am    
You also have the option of using PowerShell.
But like Jochem stated, please give some example structures for a better and complete answer
ZurdoDev 13-Jan-16 7:32am    
Use a 3rd party tool designed to do that.

C# is a better option than SQL for your question.
Since comparison usually tells you if 2 worksheets are the same or not, you must define what kind of differences you expect.

For Excel sheets comparison, I usually do in Excel with a VBA macro, the result being another sheet mapping the differences.
 
Share this answer
 
 
Share this answer
 
simply use vlookup formula in excel or import it in MSSQL server preform join.
 
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