public static bool CheckServerCenter() { RefreshSnapShotBLL objBll = new RefreshSnapShotBLL(); if (ConfigurationManager.AppSettings["ServerType"] == "0" && !objBll.IsExistsRefreshSnapShot("USP_REFRESH_SNAPSHOT", "PROCEDURE")) { return(true); } else { return(false); } }
protected void Page_Load(object sender, EventArgs e) { if (!PrjPub.IsServerCenter) { RefreshSnapShotBLL objBll = new RefreshSnapShotBLL(); if (!objBll.IsExistsRefreshSnapShot("BOOK", "MATERIALIZED VIEW")) { Response.Redirect("RefreshDataDefault.aspx"); } } BBSUrl = System.Configuration.ConfigurationManager.AppSettings["BBCUrl"].ToString(); if (!IsPostBack) { BindGrid(); } }
public static bool IsCreateSnapShot() { RefreshSnapShotBLL objBll = new RefreshSnapShotBLL(); return(objBll.IsExistsRefreshSnapShot("BOOK", "MATERIALIZED VIEW")); }