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
Fish are sorted on a quay table separate from a moored fishing boat

When to Use sort_in_tempdb for Rebuilding Indexes? – Interview Question of the Week #207

January 6, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Index, SQL Performance, SQL Scripts, SQL Server, SQL TempDB

When should you use sort_in_tempdb for rebuilding indexes? A DBA asked me in a Health Check, and the simple answer is when TempDB sits on fast, separate drives.

Read More
Cooking spoons hang in ascending bowl sizes regardless of their handle colors

How to Sort a Varchar Column Storing Integers with Order By? – Interview Question of the Week #206

December 30, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL Datatype, SQL Order By, SQL Scripts, SQL Server, SQL String

How do you sort a Varchar column storing integers with Order By when you cannot change the datatype? Here are two simple solutions I shared with a developer.

Read More
A growing sapling in a terracotta pot stands beside a measuring cord and a spare pot

How to Track Autogrowth of Any Database? – Interview Question of the Week #205

December 23, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL Performance, SQL Scripts, SQL Server, SQL Server Configuration

How do you track autogrowth of any database? Constant autogrowth was slowing a client’s busy e-commerce database, and here is how we found when and who caused it.

Read More
An empty sewing tin stands beside many thread spools that have not been placed inside it

How to Create an Empty Table and Fool Optimizer to Believe It Contains Data? – Interview Question of the Week #204

December 16, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL Performance, SQL Scripts, SQL Server, SQL Statistics, SQL Table Operation

How do you create an empty table and fool the optimizer into thinking it has data? Nobody asked me that in 20 years, but I use this trick in Health Checks.

Read More
An intact swimring is partly deflated beside its disconnected pump

How to Shrink All the Log Files for SQL Server? – Interview Question of the Week #203

December 9, 2018
Pinal Dave
SQL Interview Questions and Answers
Shrinking Database, SQL Backup and Restore, SQL DMV, SQL Scripts, SQL Server

Question: How to Shrink All the Log Files for SQL Server? Here is the script, plus why you should shrink only log files and never data files.

Read More
A narrow maintenance entrance opens to one available chair

How to Start Database in a Single User Mode? – Interview Question of the Week #202

December 2, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL Server, SQL Server Configuration, SQL Server Management Studio, Starting SQL

How do you start a database in a single user mode when there is corruption? Here are simple steps in SQL Server Configuration Manager, one by one.

Read More
A common watering pipe feeds three matching plant pots together

How to Grow All Files in a File Group Equally? – TRACE FLAG 1117 – Interview Question of the Week #201

November 25, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL Data Storage, SQL Scripts, SQL Server, SQL TempDB, TraceFlags

How do you grow all files in a file group equally? The answer is Trace Flag 1117, plus the AutoGrow option that SQL Server 2016 brought for filegroups.

Read More
Previous 1 … 12 13 14 15 16 17 18 … 58 Next
  • Books
  • Testimonials
  • Privacy Policy

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