About 17,800 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. 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:

  3. 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 …

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

    May 3, 2014 · 42 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. sql server - Why auto update statistics are not efficient to improve ...

    May 9, 2017 · Sp_UpdateStats will update the statistics on all the tables. Brent Ozar believes that this should be done much more regularly then doing reorgs or rebuilds on indexes. By updating your …

  6. 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 …

  7. 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 …

  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 - How can you track the progress of a SQL update? - Stack ...

    Jan 21, 2011 · You can use the sysindexes table, which keeps track of how much an index has changed. Because this is done in an atomic update, it won't have a chance to recalc statistics, so …

  10. 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 …