What\'s the best way to check if a table exists in a Sql database in a database independant way?
I came up with:
bool exists; const string sql
Very Simple
use YOUR_DATABASE --OPTIONAL SELECT count(*) as Exist from INFORMATION_SCHEMA.TABLES where table_name = 'YOUR_TABLE_NAME'
If the answer is 1, There is a table. If the answer is 0, There is no table.