Well, once again you seem to have irritated some monks, and the whole pony question has been raised, which will probably keep this thread alive for days. But I think it is worth offering you some help, even if you have sometimes been accused of not listening. Heck, SOPW is often more about drive-by learning than helping the OP. :)
I think marto raises an interesting question -- did none of the answers to your earlier question help you? If you want to get help from other monks, you'll need to demonstrate more effectively that you are listening carefully. Please forgive the mild lecture.
If I were trying to compare two MS SQL databases, I would go about it by breaking the problem up into tiny manageable pieces:
my $table_statement = "SELECT table_name FROM ${database}.information_ +schema.tables";
my %tablenames = (); while ((@row) = $sth->fetchrow_array) { $tablenames{$row[0]}++; }
When the dust settles, you should have a hash with a bunch of table names, some of which have a value of 1, and others that have a value of 2. The tables with a 2 are the ones which appear in both databases.
This is a pretty simple problem, and you ought to be able to adapt this solution for your specific needs. Good luck! :)
In reply to Re: Automated detection of different tables with same name
by ptum
in thread Automated detection of different tables with same name
by Win
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |