Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Notifications require SQL Server 9.0 or later

Notifications require SQL Server 9.0 or later

Scheduled Pinned Locked Moved ASP.NET
databasequestioncsharpasp-netsharepoint
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sekannak
    wrote on last edited by
    #1

    Hi, I am trying to use the Sqlcachedependency in my application but am getting error... step1) Enabled notification service of the database step2) enabled notification service of the Table step3) coding in asp.net2.0 protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { DataTable tbl1 = new DataTable(); tbl1 = (DataTable) Cache.Get("tbl"); if (tbl1 == null) { tbl1 = fnloadgrid(); lbl.Text = System.DateTime.Now.ToString(); } grd.DataSource = tbl1.DefaultView; grd.DataBind(); } } public DataTable fnloadgrid() { if (Con.State == ConnectionState.Closed) { Con.ConnectionString = Constr.ConnectionString; Con.Open(); Cmd.Connection = Con; Cmd.CommandType = CommandType.StoredProcedure; Cmd.CommandText = "Sp_Select"; Cmd.Parameters.Add("@Tabid", SqlDbType.Int).Value = 1; SqlCacheDependency Depend = new SqlCacheDependency(Cmd); Da.SelectCommand = Cmd; Da.Fill(Ds, "tbl"); tbl = Ds.Tables[0]; Cache.Insert("tbl", tbl, Depend); } return tbl; } note: while filling am getting error like as follows, Notifications require SQL Server 9.0 or later. so what is this Error ..can u clear me plz.......? Regards, kannak.......

    kannak

    L 1 Reply Last reply
    0
    • S sekannak

      Hi, I am trying to use the Sqlcachedependency in my application but am getting error... step1) Enabled notification service of the database step2) enabled notification service of the Table step3) coding in asp.net2.0 protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { DataTable tbl1 = new DataTable(); tbl1 = (DataTable) Cache.Get("tbl"); if (tbl1 == null) { tbl1 = fnloadgrid(); lbl.Text = System.DateTime.Now.ToString(); } grd.DataSource = tbl1.DefaultView; grd.DataBind(); } } public DataTable fnloadgrid() { if (Con.State == ConnectionState.Closed) { Con.ConnectionString = Constr.ConnectionString; Con.Open(); Cmd.Connection = Con; Cmd.CommandType = CommandType.StoredProcedure; Cmd.CommandText = "Sp_Select"; Cmd.Parameters.Add("@Tabid", SqlDbType.Int).Value = 1; SqlCacheDependency Depend = new SqlCacheDependency(Cmd); Da.SelectCommand = Cmd; Da.Fill(Ds, "tbl"); tbl = Ds.Tables[0]; Cache.Insert("tbl", tbl, Depend); } return tbl; } note: while filling am getting error like as follows, Notifications require SQL Server 9.0 or later. so what is this Error ..can u clear me plz.......? Regards, kannak.......

      kannak

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      sekannak wrote:

      Notifications require SQL Server 9.0 or later

      Means that you'll need SQL Server 2005, or newer. Are you running SQL Server 2000 by any chance?

      I are Troll :suss:

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups