I know this is similar to this question, but I\'m using SQL Server CE 3.5 with a WinForms project in C#. How can I determine whether a table exists? I know the IF
var db = Database.Open("MyDatabase");
var sql = @"SELECT Count(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'MyTable'"
var count = db.QueryValue(sql);
if(count.Equals(1)){
//table exists
}