I need to search multiple (over 200) tables for information. At the moment I'm having to search through the tables until I find a certain column name, then I search that column for certain values.
Is there a way to shorten this process, or at least figure out which tables have this column? I ran a query on the syscolumns table and it looks like there's over 180 tables that have this column in it.
When I find a table with the column I'm looking for, I do this:
It would be nice to be able to do this without having to look through a couple hundread tables.
KizMar
------------
Is there a way to shorten this process, or at least figure out which tables have this column? I ran a query on the syscolumns table and it looks like there's over 180 tables that have this column in it.
When I find a table with the column I'm looking for, I do this:
Code:
SELECT *
FROM <table_name>
WHERE TermCalendarID in (1,2,3,4,5,51,53,138,133)
It would be nice to be able to do this without having to look through a couple hundread tables.
KizMar
------------