I\'m using the Entity Framework with Code First approach. The base class DbContext has functions to create and delete the database as well as to check for its existence.
An alternative method; it's not as efficient as Ladislav's, but it's not tied to SQL Server (edited to add Where clause to address performance issue):
bool CheckTableExists() { try { context.YourTable.Where(s => s. = ).Count(); return true; } catch (Exception) { return false; } }