Perhaps the easiest and cheapest way is to perform the merge. If the schemas
are the same, all is well. Otherwise, they are not and you will get an
exception that you can handle appropriately.
--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET - MS Press
Professional VSTO 2005 - Wrox/Wiley
OWC Black Book
www.lulu.com/owc
"Leon_Amirreza" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> dataset1.table1 is filled from a table in a database
> dataset2.table1 is filled from a table in a database
>
> How can I programatically compare the two tables to see if their schemas
> are
> compatible (Same column definitions and contraints and keys...) and can be
> merged or not?
>