Thanks mufasa for your reply. The code works good.
The real problem that i'm facing is, i have to compare the output for around 300 tables from both the databases and each table has an average of around 50 to 60 columns. Moreover, there are 4 to 7 columns with date field, which i need to skip...