public bool SQLConnect() { try { string con = System.Configuration.ConfigurationManager.ConnectionStrings["projectdbconnection"].ConnectionString; iCommand = new System.Data.SqlClient.SqlCommand("", new System.Data.SqlClient.SqlConnection(con)); iAdapter = new System.Data.SqlClient.SqlDataAdapter(); iCommand.Connection.Open(); return true; } catch (Exception ex) { return false; } }