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. Database & SysAdmin
  3. Database
  4. SQL Server : Query Cost (relative to the batch): 100%

SQL Server : Query Cost (relative to the batch): 100%

Scheduled Pinned Locked Moved Database
databasequestionsql-serversysadmin
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.
  • N Offline
    N Offline
    NTheOne
    wrote on last edited by
    #1

    Hello All, Whenever I run any simple select query, it shows me following message in Execution Plan. I have created relevant indexes on the table. Query Cost (relative to the batch): 100% Can anyone tell how can I reduce this Query Cost ? Thanks

    I 1 Reply Last reply
    0
    • N NTheOne

      Hello All, Whenever I run any simple select query, it shows me following message in Execution Plan. I have created relevant indexes on the table. Query Cost (relative to the batch): 100% Can anyone tell how can I reduce this Query Cost ? Thanks

      I Offline
      I Offline
      i j russell
      wrote on last edited by
      #2

      You are misunderstanding what Query Cost is. If you run any single query, the cost will always be 100%. If you run multiple queries, the total cost of all of the queries in the batch added together will equal 100%. The value is used to compare the relative cost of each query in the batch as the message says.

      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