About 30,600 results
Open links in new tab
  1. sql server - How to grant UPDATE STATISTICS to any table to a user ...

    2 According to SQL Server documentation, to run UPDATE STATISTICS ON a table you need the ALTER TABLE permission. I would like my user to have the permission to update stats on any table …

  2. sql server - when were index statistics last updated? - Stack Overflow

    Jun 9, 2009 · Is there a quick and easy way to list when every index in the database last had their statistics updated? The preferred answer would be a query. Also, is it possible to determine the …

  3. Query to know at what sample percentage stats last updated

    Dec 29, 2016 · Here is what my final SQL that gives you very valuable information in regards to stats when doing quick validations:

  4. sql - What does exec sp_updatestats do? - Stack Overflow

    May 3, 2014 · sp_updatestats updates all statistics for all tables in the database, where even a single row has changed. It does it using the default sample, meaning it doesn't scan all rows in the table so …

  5. Getting statistics on a temp table in SQL Server

    Jul 15, 2024 · The answer to that seemed to be that the actual column names on temp tables get encoded, and the answer was to use "create statistics" I think by "encoded" you are referring to the …

  6. sql server - Why auto update statistics are not efficient to improve ...

    May 9, 2017 · Even though you have auto update statistics set to true, your statistics won't be updated frequently SQLServer triggers automatic statistics update,based on certain thresholds and below …

  7. sql - Rebuild all indexes in a Database - Stack Overflow

    Sep 10, 2015 · 118 I have a very large SQL Server 2008 R2 database (1.5TB) and will be copying some data from column to column within the same table. I've been told that the schema has a large …

  8. Tsql, know when index rebuild, reorg or ... - Stack Overflow

    May 14, 2010 · SQL Server does not store this information. You can get an "approximate" estimate based on the date the last time the statistics were updated for a given Index as a REBUILD operation …

  9. SQL Server Update Statistics - Stack Overflow

    If I use the Update Statics TBL1 command, all the statistics for TBL1 are updated. In the MSDN documentation, I see that updating statistics causes queries to recompile, what do they mean by re …

  10. sql server - Are statistics automatically updated when a new index is ...

    Dec 18, 2009 · Is there any benefit to running an UPDATE Statistics after you create an index or is it done automatically for you?