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 heaped woodpile beside a neat stack of logs on a vermilion pallet

Index Build Speed: Which Rebuild Settings Change the Time

March 1, 2021
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server, SQL TempDB

Index build speed depends on rebuild or reorganize, MAXDOP, ONLINE, SORT_IN_TEMPDB and the recovery model. This post times each choice on a million row table and measures the log under each recovery model. It shows which one changes the clock and which changes only the log.

Read More
multiple backup

Forwarded Records, Multiple Backup and SSMS – SQL in Sixty Seconds – Feb 2021

February 26, 2021
Pinal Dave
SQLAuthority News
SQL Server

This month’s SQL in Sixty Seconds topics were Forwarded Records, Multiple Backup and SSMS. Here are the videos released in Feb 2021.

Read More
An open fitted drawer and corresponding sample tray preserve their compartment sequence.

SQL SERVER – Get Column Names

February 25, 2021
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Scripts, SQL Server, SQL Stored Procedure

I Get Column names using a schema-qualified table and a defined column order. The four methods use corrected filters.

Read More
Mixed wooden pieces in one shallow bowl beside three small bowls containing sorted matching pieces.

Normalisation in Plain Words, and When to Stop

February 24, 2021
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Understand normalisation through one order example, then decide when a reporting copy is worth the cost of keeping duplicated data consistent.

Read More
Title card: Msg 2714: There Is Already an Object Named

SQL SERVER – Fix: There is already an object named ‘MyFirstTable’ in the database

February 23, 2021
Pinal Dave
SQL Tips and Tricks
Primary Key, SQL Error Messages, SQL Scripts, SQL Server

Recently I had a very interesting scenario with a client when they faced an error about already object named that exist in the database.

Read More
Gouache painting of two identical windows showing the same garden at night, with a small potted plant between them

AT TIME ZONE Twice: Convert UTC to Local Time in SQL Server

February 22, 2021
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

AT TIME ZONE twice converts UTC to local time in SQL Server. The first use labels a plain value as UTC and the second converts it. A demo shows the common one step mistake, stores in three cities, and the missing and repeated hours of daylight saving.

Read More
backup files

Multiple Backup Copies Stripped – SQL in Sixty Seconds #156

February 19, 2021
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL in Sixty Seconds, SQL Server, SQL Server Management Studio

Yesterday I blogged about SQL SERVER – Creating Multiple Backup Copies. I got an amazing response to the blog post. Let us learn it today.

Read More
Two complementary cloth portions remain necessary for reassembly into one full-width frame.

SQL SERVER – Creating Multiple Backup Files – Stripped

February 18, 2021
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Server, SQL Server Management Studio

Multiple Backup Files can form one striped backup set. A customer wanted several files for a single database backup.

Read More
Two connected cabinets retain separately inspectable fitting profiles.

SQL SERVER – Availability Groups Can Propagate Database Compatibility Level

February 17, 2021
Pinal Dave
SQL Tips and Tricks
AlwaysOn, Compatibility Level, SQL High Availability, SQL Mirroring, SQL Server

Propagation of Compatibility Level needs verification on the actual availability-group topology. I compare each replica through its own connection.

Read More
Gouache painting of a windowsill of cacti with the tallest one wearing a vermilion cork cap

Escape Text for JSON: Build Valid JSON With STRING_ESCAPE

February 16, 2021
Pinal Dave
SQL Tips and Tricks
JSON, Quotes, SQL Scripts, SQL Server, SQL String

To escape text for JSON, pass each value through STRING_ESCAPE, so JSON built by hand stays valid. A demo shows which characters it escapes and which it leaves alone. It also shows when JSON_MODIFY and FOR JSON make it unnecessary.

Read More
Previous 1 … 51 52 53 54 55 56 57 … 591 Next
  • Books
  • Testimonials
  • Privacy Policy

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