protected bool TableExists(string tableName) { string sql = "SELECT table_name FROM INFORMATION_SCHEMA.tables WHERE table_name = '" + tableName + "'"; bool exists = false; using (SqlCeConnection cn = new SqlCeConnection(this.connectionString)) { using (SqlCeCommand cm = new SqlCeCommand(sql, cn)) { cn.Open(); SqlCeResultSet r = cm.ExecuteResultSet(ResultSetOptions.Scrollable); exists = r.HasRows; } } return exists; }Just like to ensure I'm using the most reliable test