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
One red ceramic tile sits first while the remaining tiles follow in a tidy order

How to Keep Certain Records on Top While Ordering Data? – Interview Question of the Week #110

February 19, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Order By, SQL Scripts, SQL Server

An interview question: how do you keep one city on top while ordering data by name for the rest? The answer is a small trick in the ORDER BY clause.

Read More
A rack holds separate sealed backup parcels, with a new one added at the end

How to Add Date to Database Backup Filename? – Interview Question of the Week #109

February 12, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Backup and Restore, SQL Scripts, SQL Server

A reader using Backup to URL asked how to add the date to a Database Backup Filename. Here is a script that builds the name for you.

Read More
One sewing tool makes a new seam while another refreshes a worn seam

How to Enable Auto Update Statistics and Auto Create Statistics with T-SQL – Interview Question of the Week #108

February 5, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL Statistics

Question: How to Enable Auto Update Statistics and Auto Create Statistics? Let us learn how we can fix that in today’s blog post.

Read More
A square wooden piece passes through a brass adapter and emerges as a round piece

Find All Queries with Implicit Conversion in SQL Server – Interview Question of the Week #107

January 29, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL DMV, SQL Performance, SQL Scripts, SQL Server

Question: How do I find out how many queries have an Implicit Conversion in SQL Server? The source of this question is very interesting.

Read More
A freshly sealed reserve barrel stands in front of older stored copies

When was Database Last Backed Up in SQL Server? – Interview Question of the Week #107

January 22, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Backup and Restore, SQL Scripts, SQL Server

When was each database last backed up? Here is the script I share in training that lists full, differential and log backup history for your server.

Read More
One connected copper supply pipe feeds three separate bowls

How to Query Multiple SQL Server with a Single Query? – Interview Question of the Week #106

January 15, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL Server Management Studio

A senior DBA needed to check SQL Server 2016 SP1 on every server. Here is the neat way he used to query multiple SQL Server instances with a single query.

Read More
Unmarked tokens tumble from a wooden raffle drum

How to Get Random Records from Table? – Interview Question of the Week #105

January 8, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Function, SQL Random, SQL Scripts, SQL Server

How do you get random records from a table? This interview question never gets old. Here is the ORDER BY method I use because its syntax is easy to remember.

Read More
Previous 1 … 26 27 28 29 30 31 32 … 58 Next
  • Books
  • Testimonials
  • Privacy Policy

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