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
Gouache painting of a pantry shelf of jars with uneven gaps beside a snug shelf, with one vermilion jar alone

Check Index Fragmentation With Row Count in SQL Server

October 17, 2019
Pinal Dave
SQL Performance
Clustered Index, SQL Index, SQL Scripts, SQL Server

To check index fragmentation with row count, read sys.dm_db_index_physical_stats in SAMPLED mode and keep the page count and row count next to each percentage. This post builds a demo with three tables, lists every index, filters out the tiny ones, loops over every online database, and rebuilds the one index that matters.

Read More
A fitted drawer belongs to one cabinet while a neighboring cabinet has an empty recess.

SQL Puzzle – Schema and Table Creation – Answer Without Running Code

October 15, 2019
Pinal Dave
SQL Puzzle
Schema, SQL Scripts, SQL Server, SQL Table Operation

This Table Creation puzzle asks for an explanation before you run its code. I suggest examining the batch separators carefully.

Read More
A narrow bridge directs the route across a small stream

How to Know If Index is Forced on Query? – Interview Question of the Week #246

October 13, 2019
Pinal Dave
SQL Interview Questions and Answers
Query Hint, SQL Index, SQL Performance, SQL Scripts, SQL Server

Question: How to Know If Index is Forced on Query?

Answer: Let me tell you a brief story so you understand the context of the question.

Read More
Gouache painting of a plain gift box with a vermilion sticker being peeled off

Remove Completion Time From the SSMS Messages Tab

October 10, 2019
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Server Management Studio, SQL Shortcut

To remove completion time from the Messages tab in SSMS, clear one check box in the options. This post gives the exact steps for SSMS 22, explains why no T-SQL setting controls the line and says why old query windows keep showing it. It also shows how to print a time yourself, when a script needs one.

Read More
Title card: Error 25641: package0.event_file Filename Invalid

SQL SERVER – Installation Error: 25641- For target, “package0.event_file”, the parameter “filename” passed is invalid. Target parameter at index 0 is invalid

October 9, 2019
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Log, SQL Server, SQL Server Security

While installing SQL Server 2012 in a client environment, they faced an interesting error about for target. Here is the information that is taken.

Read More
A small red folding bicycle being unfolded on a train platform beside a heavy old bicycle

go-sqlcmd: The New Command Line Tool for SQL Server

October 8, 2019
Pinal Dave
SQL Tips and Tricks
Command Line, SQL Server, SQL Utility, sqlcmd

Set up go-sqlcmd on Windows, verify the executable, run scripts and variables, control output, and review optional container commands.

Read More
A hammock depends on two firmly connected supporting trees

What is SCHEMABINDING in SQL Server Views? – Interview Question of the Week #245

October 6, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL Table Operation, SQL View

SCHEMABINDING keywords prevent tables used in the views to make any such modifications that can affect the view’s definition. 

Read More
Previous 1 … 67 68 69 70 71 72 73 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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