using (SqlCommand cmd = new SqlCommand(DataAccess.GetConnection(ConnectionString)))
{
cmd.ExecuteNonQuery();
}
catch (Exception ex)
{
throw new Exception("Unknown loginType - SQLConnection not made");
/* Log.Write("Failed to get SQL connection to the database " + Controller.Instance.Model.SQLDatabase + ": " + ex.Message);
Log.Write(SQLConn.ConnectionString);
throw ex; */
}
catch (Exception ex)
{
Log.Write("Failed to get SQL connection to the database " + Controller.Instance.Model.SQLDatabase + ": " + ex.Message);
Log.Write(SQLConn.ConnectionString);
throw ex;
}