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. Numbers of rows different in Q.A and in E.M.!!

Numbers of rows different in Q.A and in E.M.!!

Scheduled Pinned Locked Moved Database
databasehelpquestion
8 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.
  • U Offline
    U Offline
    under2811
    wrote on last edited by
    #1

    Hello Friends, Recently I came one problem, when i opened Sql Enterprise Manager, on right side of window list of Tables, there when i right click on table and i am getting total number of rows say 5 but when i double click then here i am getting 12 rows!!!!!!!!!!!!!! How That possible????? I checked through Query Analyser also there also i am getting 5 rows!!! Can Any body know this Please Help me out!!!!!!!!! Thanks In Advance Shashank

    C 1 Reply Last reply
    0
    • U under2811

      Hello Friends, Recently I came one problem, when i opened Sql Enterprise Manager, on right side of window list of Tables, there when i right click on table and i am getting total number of rows say 5 but when i double click then here i am getting 12 rows!!!!!!!!!!!!!! How That possible????? I checked through Query Analyser also there also i am getting 5 rows!!! Can Any body know this Please Help me out!!!!!!!!! Thanks In Advance Shashank

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      under2811 wrote: there when i right click on table and i am getting total number of rows say 5 but when i double click then here i am getting 12 rows When I right-click on a table I get a menu. I'm guessing you've missed a step here and selected something from the menu as well.


      My: Blog | Photos WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More

      U 1 Reply Last reply
      0
      • C Colin Angus Mackay

        under2811 wrote: there when i right click on table and i am getting total number of rows say 5 but when i double click then here i am getting 12 rows When I right-click on a table I get a menu. I'm guessing you've missed a step here and selected something from the menu as well.


        My: Blog | Photos WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More

        U Offline
        U Offline
        under2811
        wrote on last edited by
        #3

        Hello Colin Angus Mackay, When I right click on table i am getting menus there open table>> Return all rows here i am getting 5 rows while when i double click on table_name there i am getting 12 rows!!! how that is possible????? Thanks In Advance Shashank

        C Y 2 Replies Last reply
        0
        • U under2811

          Hello Colin Angus Mackay, When I right click on table i am getting menus there open table>> Return all rows here i am getting 5 rows while when i double click on table_name there i am getting 12 rows!!! how that is possible????? Thanks In Advance Shashank

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          I would think that the database statistics are out of date. You could try running UPDATE STATISTICS[^] in the query analyser.


          My: Blog | Photos WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More

          1 Reply Last reply
          0
          • U under2811

            Hello Colin Angus Mackay, When I right click on table i am getting menus there open table>> Return all rows here i am getting 5 rows while when i double click on table_name there i am getting 12 rows!!! how that is possible????? Thanks In Advance Shashank

            Y Offline
            Y Offline
            Yulianto
            wrote on last edited by
            #5

            under2811 wrote: how that is possible????? It's impossible.


            Work hard, Work effectively.

            C 1 Reply Last reply
            0
            • Y Yulianto

              under2811 wrote: how that is possible????? It's impossible.


              Work hard, Work effectively.

              C Offline
              C Offline
              Colin Angus Mackay
              wrote on last edited by
              #6

              Yulianto. wrote: It's impossible. Actually, it isn't. I've seen the database report in Enterprise Manager so many rows for a table, but if I do a SELECT COUNT(*) FROM TableName in the Query Analyser I get a different result. This is because the database statistics haven't been rebuilt recently so some parts of the database are operating on out of date information. This does not affect the results of a query (it will always be accurate based on the current state of the database) however, out of date statistics can slow down the database as the query optimiser may choose an incorrect query plan.


              My: Blog | Photos WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More

              Y 1 Reply Last reply
              0
              • C Colin Angus Mackay

                Yulianto. wrote: It's impossible. Actually, it isn't. I've seen the database report in Enterprise Manager so many rows for a table, but if I do a SELECT COUNT(*) FROM TableName in the Query Analyser I get a different result. This is because the database statistics haven't been rebuilt recently so some parts of the database are operating on out of date information. This does not affect the results of a query (it will always be accurate based on the current state of the database) however, out of date statistics can slow down the database as the query optimiser may choose an incorrect query plan.


                My: Blog | Photos WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More

                Y Offline
                Y Offline
                Yulianto
                wrote on last edited by
                #7

                I see. Never notice it. Thank you for the info.:)


                Work hard, Work effectively.

                U 1 Reply Last reply
                0
                • Y Yulianto

                  I see. Never notice it. Thank you for the info.:)


                  Work hard, Work effectively.

                  U Offline
                  U Offline
                  under2811
                  wrote on last edited by
                  #8

                  Any way Thanks A Lot!!!!!!!

                  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