This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
SQL SERVER - Scripting Statistics for Read-Only Database and Making it Permanent

SQL SERVER – Scripting Statistics for Read-Only Database and Making it Permanent

December 4, 2013
Pinal Dave
SQL Tips and Tricks
SQL Statistics

Learn scripting statistics for read-only database use from TempDB, then make them permanent so they survive a SQL Server restart.

Read More
SQL SERVER - Location of Statistics Before and After Database is Marked as a Read-Only

SQL SERVER – Location of Statistics Before and After Database is Marked as a Read-Only

December 2, 2013
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Statistics

Where do old statistics go when a database becomes read-only? The location of statistics created before the change stays the same, and they remain permanent.

Read More
Right-click Script Statistics as.

SQL SERVER – How to Script Statistics from SSMS? – Scripting Statistics is Disabled in SSMS

November 30, 2013
Pinal Dave
SQL Tips and Tricks
SQL Statistics

Trying to script statistics in SSMS but the option is always disabled, even outside read-only databases? Here is why it happens.

Read More
SQL SERVER - Statistics for Read-Only Database are in TempDB

SQL SERVER – Statistics for Read-Only Database are in TempDB

November 29, 2013
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Statistics

Statistics usually live in the same database as the table, so where do they go for a read-only database? The answer is TempDB. Here is how it works.

Read More
SQL SERVER - SQL Server Statistics Name and Index Creation

SQL SERVER – SQL Server Statistics Name and Index Creation

September 17, 2012
Pinal Dave
SQL Performance
SQL Error Messages, SQL Index, SQL Scripts, SQL Server, SQL Statistics

Guest author Sandip hit Msg 1913 while creating an index, because an index or statistics with that name already existed. A lesson on statistics name and index creation.

Read More
SQL SERVER - Fix: Error: Msg 1904, Level 16 The statistics on table has 33 column names in statistics key list. The maximum limit for index or statistics key column list is 32

SQL SERVER – Fix: Error: Msg 1904, Level 16 The statistics on table has 33 column names in statistics key list. The maximum limit for index or statistics key column list is 32

December 11, 2011
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Statistics

Statistics can use up to 32 columns, while an index key is limited to 16. Here is Msg 1904 with a quick demo of 33 versus 32 columns.

Read More
Statistics

SQL SERVER – Find Details for Statistics of Whole Database

June 29, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Scripts, SQL Server, SQL Statistics

Need statistics of whole database in one view? My script uses DMVs instead of the deprecated sp_helpstats and shows each stat, column and last update.

Read More
Previous 1 … 6 7 8 9 10 11 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com