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 long tulip with a vermilion bloom in a short cream vase, with a second bloom lying beside it

ANSI_WARNINGS OFF: Why SQL Server Truncates Data Silently

March 3, 2020
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Error Messages, SQL Scripts, SQL Server 2019

With ANSI_WARNINGS OFF, SQL Server cuts a string to fit its column and reports no error. This post runs the same insert with the setting on and off, and shows what else changes: variables, divide by zero and filtered indexes. It also shows how to check which setting a session uses.

Read More
Gouache painting of a heap of pears beside a grey wooden crate, a blue crate and an open vermilion crate

SELECT INTO Table Variable: Why It Fails and What to Use

March 2, 2020
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Table Operation, SQL Variable, Temp Table

SELECT INTO table variable fails with Msg 102 because SELECT INTO creates its target table and a table variable must be declared first. This post shows two working fixes, a declared table variable and a temp table. It also compares them on rollback, dynamic SQL and row estimates.

Read More
A pottery roller leaves patterned impressions in clay tiles, with one tile showing a different gap.

Detecting Changed Rows With a Row Hash

February 29, 2020
Pinal Dave
SQL Tips and Tricks
Batch, ETL, SQL Function, Temp Table

Compare one fingerprint instead of twenty columns. I show a safe HASHBYTES recipe, the NULL trap that fools CONCAT_WS, and a load that touches only the rows that changed.

Read More
Gouache painting of felt cutouts of hearts, stars and suns on a table, with one heart vermilion

Smiley in SSMS: Show Emoji in Results and Database Names

February 28, 2020
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Scripts, SQL Server Management Studio, Unicode

To show a smiley in SSMS, type the emoji inside an N-prefixed string and run the query. This post explains how SQL Server stores each emoji as two characters, why two different emoji can compare as equal, and how to find them in a column. It also shows what happens when an emoji is part of a database name.

Read More
Title card: Error 15580: Cannot Drop Master Key

SQL SERVER – Error 15580 – Cannot Drop Master Key Because Dialog “GUID” is Encrypted by It

February 26, 2020
Pinal Dave
SQL Tips and Tricks
Service Broker, SQL Datatype, SQL Error Messages, SQL Scripts, SQL Server, SQL Server Encryption, SQL Server Security

In this blog, I would share my knowledge about how to fix error 15580 – Cannot drop the master key because dialog “GUID” is encrypted by it.

Read More
A boot mud scraper bearing fresh mud while clean ground surrounds it

Listing Objects Changed Since the Last Release With modify_date

February 25, 2020
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Performance, SQL Server

modify_date shows what changed after a release, but never what was dropped. Here is a small baseline trick that fills the gap.

Read More
Title card: Unable to Allocate Enough Memory to Start SQL OS Boot

SQL SERVER – Unable to Allocate Enough Memory to Start ‘SQL OS Boot’. Reduce Non-essential Memory Load or Increase System Memory

February 24, 2020
Pinal Dave
SQL Tips and Tricks
In-Memory OLTP, SQL Error Messages, SQL Performance, SQL Server, Starting SQL

In this blog, I would share my learning about error “Unable to allocate enough memory to start ‘SQL OS Boot’. Let us learn the workaround.

Read More
Previous 1 … 57 58 59 60 61 62 63 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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