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 2005 - Get list of queries ran

SQL Server 2005 - Get list of queries ran

Scheduled Pinned Locked Moved Database
databasesql-servercomgame-devsysadmin
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.
  • B Offline
    B Offline
    Brent Lamborn
    wrote on last edited by
    #1

    Can anyone tell me the best way to get a list of all the queries ran against a particular database on my server? I don't need queries ran against System Tables only the tables I've defined. As mention in the subject, it's SQL Server 2005. I've ssearched the Web as well as help files but apparently I'm not using the correct keywords in my search as I haven't found anything.


    "Half this game is ninety percent mental." - Yogi Berra If you can read thank a teacher, if you can read in English, thank a Marine.

    K J 2 Replies Last reply
    0
    • B Brent Lamborn

      Can anyone tell me the best way to get a list of all the queries ran against a particular database on my server? I don't need queries ran against System Tables only the tables I've defined. As mention in the subject, it's SQL Server 2005. I've ssearched the Web as well as help files but apparently I'm not using the correct keywords in my search as I haven't found anything.


      "Half this game is ninety percent mental." - Yogi Berra If you can read thank a teacher, if you can read in English, thank a Marine.

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      I would get a good sql log file parser. There are some good tools out there. The information you want is only in the log files. Hope that helps. Ben

      B 1 Reply Last reply
      0
      • K kubben

        I would get a good sql log file parser. There are some good tools out there. The information you want is only in the log files. Hope that helps. Ben

        B Offline
        B Offline
        Brent Lamborn
        wrote on last edited by
        #3

        Ok, I'll try that, but I also thought SQL Server 2005 has a lot of new statisitcs and usage reporting built in?


        "Half this game is ninety percent mental." - Yogi Berra If you can read thank a teacher, if you can read in English, thank a Marine.

        1 Reply Last reply
        0
        • B Brent Lamborn

          Can anyone tell me the best way to get a list of all the queries ran against a particular database on my server? I don't need queries ran against System Tables only the tables I've defined. As mention in the subject, it's SQL Server 2005. I've ssearched the Web as well as help files but apparently I'm not using the correct keywords in my search as I haven't found anything.


          "Half this game is ninety percent mental." - Yogi Berra If you can read thank a teacher, if you can read in English, thank a Marine.

          J Offline
          J Offline
          Jaiprakash M Bankolli
          wrote on last edited by
          #4

          I would suggest use SQL profiler tool, and start the session. That will record all the queries that are running on the DB. Hope that solves your problem

          Regards, Jaiprakash M Bankolli jaiprakash.bankolli@gmail.com

          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