I'm using the 2.0 framework and I'm looking for a generic way to determine if a column exists in a table. I want to use this code with multiple database types and providers.
The GetSchema method will return schema information but the format of the information and the data to restrict the information returned both seem to be specific to the provider.
The other solutions I've seen seem to boil down to Select * from table and then search the results to see if the column exists. This will work but it seems crazy to issue a select for the whole table to see if a column exists.