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 - Find Statistics Update Date - Update Statistics

SQL SERVER – Find Statistics Update Date – Update Statistics

January 25, 2010
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Statistics

Stale statistics can hurt a query plan. Use STATS_DATE to find the statistics update date for each index, then update them if they look outdated.

Read More
Hands arranging fabric squares into a patchwork quilt pattern

Building Your Own Sample Data Set

January 24, 2010
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Sample Database, SQL Scripts, Testing

Build a sample data set with realistic keys, skew, NULLs, and repeatable generation when a downloaded sample misses the lesson.

Read More
Query options in SQL Server.

SQL SERVER – SSMS Query Command(s) completed successfully without ANY Results

January 19, 2010
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts

A friend’s SSMS window returned only Command(s) completed successfully for every query. I logged in remotely and found what was wrong with that session.

Read More
Msg 297, Level 16, State 1, Line 1.

SQL SERVER – DMV Error: FIX: Error: Msg 297, Level 16 The user does not have permission to perform this action

January 18, 2010
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts

Msg 297 appears when a user runs a DMV without the right permission. Ask your admin to GRANT VIEW SERVER STATE, and the DMV runs without errors.

Read More
SQL Server version info.

SQL SERVER – Get Server Version and Additional Info

January 17, 2010
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Utility

Most people check the SQL Server version with @@VERSION. I also like xp_msver, which shows extra details about the server where SQL Server is installed.

Read More
A SQL Server performance tool window.

SQL SERVER – Find Busiest Database

January 14, 2010
Pinal Dave
SQL Performance
SQL Scripts

How do you find the busiest database on a SQL Server instance? I use sys.dm_exec_query_stats to add up logical reads and writes for each database.

Read More
SQL Server fragmentation window.

SQL SERVER – Fragmentation – Detect Fragmentation and Eliminate Fragmentation

January 12, 2010
Pinal Dave
SQL Performance
SQL Index, SQL Scripts

What is fragmentation, and how do you detect fragmentation and eliminate it? I explain the internal and external types and what each one does to your pages.

Read More
Previous 1 … 268 269 270 271 272 273 274 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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