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. the query has been canceled because the estimated cost of this query (569) exceeds the configured threshold of 300

the query has been canceled because the estimated cost of this query (569) exceeds the configured threshold of 300

Scheduled Pinned Locked Moved ASP.NET
databasesql-serversysadminhelp
3 Posts 2 Posters 1 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.
  • N Offline
    N Offline
    narithchap
    wrote on last edited by
    #1

    Dear all, I got this message when i try to select data from table with more than 90201 row. The query has been canceled because the estimated cost of this query (569) exceeds the configured threshold of 300. Contact the system administrator. I got this when i try to show all data in that table in website(aspx page). I just normal user can not log in to change any setting in sql server admin. please help

    D 1 Reply Last reply
    0
    • N narithchap

      Dear all, I got this message when i try to select data from table with more than 90201 row. The query has been canceled because the estimated cost of this query (569) exceeds the configured threshold of 300. Contact the system administrator. I got this when i try to show all data in that table in website(aspx page). I just normal user can not log in to change any setting in sql server admin. please help

      D Offline
      D Offline
      David Mujica
      wrote on last edited by
      #2

      The DB engine is actually doing a great job of protecting you. What are you going to do with 90,000+ records on a web page ? It would be impossible for someone to browse that much data. Change your logic to retrieve "blocks" of data, say 100 records or so. You will need to break the data down into "pages" of data where the user could click on a control and retrieve the next grouping of data. For example you could provide a A through Z filter on the top of the page, the user clicks "M" and you would retrieve the first 100 people with the last name beginning with M. The "Next" button would then fetch the next 100 people with the name beginning with M and so on ... 90,000 records is way too much data to display in a single query. Good luck.

      N 1 Reply Last reply
      0
      • D David Mujica

        The DB engine is actually doing a great job of protecting you. What are you going to do with 90,000+ records on a web page ? It would be impossible for someone to browse that much data. Change your logic to retrieve "blocks" of data, say 100 records or so. You will need to break the data down into "pages" of data where the user could click on a control and retrieve the next grouping of data. For example you could provide a A through Z filter on the top of the page, the user clicks "M" and you would retrieve the first 100 people with the last name beginning with M. The "Next" button would then fetch the next 100 people with the name beginning with M and so on ... 90,000 records is way too much data to display in a single query. Good luck.

        N Offline
        N Offline
        narithchap
        wrote on last edited by
        #3

        Actually that table's name is Tblvisitor, I want to get some more info about my visitors so i display that data in web page (100/page) before it is about 50000 i can display them. but now it is about 100000 so i got error. Yes, your idea is good, now i display only data from 80000 and hide data from 1 to 79999 so it is working again. However thank you!!! good luck.

        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