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
Selected cabinet fittings and blank patterns are reviewed for a differently shaped destination.

SQL SERVER – Restoring SQL Server 2017 to SQL Server 2005 Using Generate Scripts

September 21, 2018
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server, SQL Server Management Studio

I used generate scripts for a historical SQL Server 2017-to-2005 migration. It was a logical migration rather than a backward backup restore.

Read More
Gouache illustration of the first and last day of the current date's month, using the first and last sheets between two bookends.

SQL SERVER – Simple Method to Find FIRST and LAST Day of Current Date

September 20, 2018
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

I calculate the FIRST and LAST Day of Current Date using explicit date boundaries. The historical sample starts on October 28, 2017.

Read More
Seven source tiles remain intact beside four distinct reliefs on a separate display board.

SQL SERVER – Remove Duplicate Rows Using UNION Operator

September 19, 2018
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Union clause

The UNION operator removes duplicates from a query result without deleting source rows. I use a small example to show that distinction.

Read More
Diagram of servers and database clusters.

SQL SERVER – How to Fix log_reuse_wait_desc – AVAILABILITY_REPLICA?

September 18, 2018
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL Replication, SQL Scripts, SQL Server, Transaction Log

A client’s database always showed AVAILABILITY_REPLICA in log_reuse_wait_desc of sys.databases. After quick research, here is what it means and how to fix it.

Read More
Gouache painting of a clear pond filling with silt from a muddy stream with a vermilion footbridge over it

Find the Query Growing TempDB in SQL Server

September 17, 2018
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL TempDB

To find the query growing TempDB, read the space each session has allocated and join it to its statement. This post separates temporary tables from spills, watches both live in a second window and shows the totals after a query ends. It ends with ways to fix a spill.

Read More
A wooden flower press compresses flowers between its boards

Where is the Default Settings for Backup Compression? – Interview Question of the Week #191

September 16, 2018
Pinal Dave
SQL Interview Questions and Answers
Compression, SQL Backup and Restore, SQL Scripts, SQL Server, SQL Server Configuration

Where are the default settings for backup compression? The Back Up dialog shows three options. Here is where the server default lives and how to set it.

Read More
Gouache painting of three seedlings at different heights with a vermilion ribbon on the middle one

Estimated Completion Time for Backup, Restore and DBCC

September 15, 2018
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL DMV, SQL Scripts, SQL Server DBCC

The estimated completion time of a backup, restore or DBCC command is one query away. This post builds a monitor query on sys.dm_exec_requests and watches a backup, a restore and a DBCC check in a second window. It also covers STATS and the DBCC step name.

Read More
Previous 1 … 90 91 92 93 94 95 96 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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