I'm trying to check if table exists, but not working correctly.
For some reason, count always returns -1. I already have a table in the database. It should return 1?
SearchEntities db = new SearchEntities();
var qry3 = "";
var sql4 = "SELECT Count(*) FROM SearchDB.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'portland'";
var count = db.Database.ExecuteSqlCommand(sql4);