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. Making my DB faster

Making my DB faster

Scheduled Pinned Locked Moved Database
databasesql-serverdesignsysadminquestion
4 Posts 3 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.
  • D Offline
    D Offline
    Dewald
    wrote on last edited by
    #1

    Hi folks, I have a database in MS SQL Server which is accessed by an application I wrote. In other words, I have control over both the DB and the software. Things have grown so much now that I'm getting worried I might not have set up all the correct indexes in the DB to really optimise the queries. I should probably sit down and go through all of my code to see what queries are being run against the DB and what indexes would optimise those queries but there is such a multitude of queries and it would be very difficult to determine which of these are run frequently and which of them only spradically. Is there a tool that can monitor all the queries that are being run against the DB over a period of time and then analyze the shortcomings in the DB design? Somehow I recall having heard of such a tool but I've never used anyhting of the sort and don't really know where to start looking.

    D L 2 Replies Last reply
    0
    • D Dewald

      Hi folks, I have a database in MS SQL Server which is accessed by an application I wrote. In other words, I have control over both the DB and the software. Things have grown so much now that I'm getting worried I might not have set up all the correct indexes in the DB to really optimise the queries. I should probably sit down and go through all of my code to see what queries are being run against the DB and what indexes would optimise those queries but there is such a multitude of queries and it would be very difficult to determine which of these are run frequently and which of them only spradically. Is there a tool that can monitor all the queries that are being run against the DB over a period of time and then analyze the shortcomings in the DB design? Somehow I recall having heard of such a tool but I've never used anyhting of the sort and don't really know where to start looking.

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

      From the SQL Server Management Studio, under the Tools menu, you will find "SQL Server Profiler". Use this tool to see exactly what SQL statements are being run, then take those statements and run them in the SQL Server Manager, and under the Query menu click on the "Include Actual Execution Plan". After running the query it will show you whether or not an index is used, which tables (or indexes) are being scanned, etc. Cool stuff. Good luck. :thumbsup:

      D 1 Reply Last reply
      0
      • D David Mujica

        From the SQL Server Management Studio, under the Tools menu, you will find "SQL Server Profiler". Use this tool to see exactly what SQL statements are being run, then take those statements and run them in the SQL Server Manager, and under the Query menu click on the "Include Actual Execution Plan". After running the query it will show you whether or not an index is used, which tables (or indexes) are being scanned, etc. Cool stuff. Good luck. :thumbsup:

        D Offline
        D Offline
        Dewald
        wrote on last edited by
        #3

        Thanks a bunch, that looks like exactly the thing I was looking for. The reason I couldn't find it was because, on my machine, I have a SQL express version of the Management Studio from which the Profiler seems to be missing. When I work directly on the machine that runs SQL Server, it is there. Now I need to figure out how to set up a trace and how to make it meaningful. But thanks, I've got something to work from now.

        1 Reply Last reply
        0
        • D Dewald

          Hi folks, I have a database in MS SQL Server which is accessed by an application I wrote. In other words, I have control over both the DB and the software. Things have grown so much now that I'm getting worried I might not have set up all the correct indexes in the DB to really optimise the queries. I should probably sit down and go through all of my code to see what queries are being run against the DB and what indexes would optimise those queries but there is such a multitude of queries and it would be very difficult to determine which of these are run frequently and which of them only spradically. Is there a tool that can monitor all the queries that are being run against the DB over a period of time and then analyze the shortcomings in the DB design? Somehow I recall having heard of such a tool but I've never used anyhting of the sort and don't really know where to start looking.

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

          Database Engine Tuning Advisor[^] might be of help.

          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