database-connection

detecting if database there or not CONFUSIONS, please help and improve this code

my aim is to create a db, and check if the db is there or not, at pageload the confusions are stated beneath "BOLD TEXT" i do not see why its not clear but still as requested i adding more explanations working fine code using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using Syst...