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 three seedling pots on a greenhouse bench, one quietly covered by a glass cloche with a vermilion rim

MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT: How to Check It Is On

June 6, 2019
Pinal Dave
SQL Tips and Tricks
In-Memory OLTP, Snapshot, SQL Memory, SQL Scripts, Transaction Isolation

MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT is a database option, so DBCC USEROPTIONS never shows it. This post reads the option from sys.databases and from DATABASEPROPERTYEX, turns it on in a demo database and finds every database that has it. It also shows a guarded script you can reuse in deployments.

Read More
Pumpkins in pairs on a farm stand, the smaller of each pair tied with a red ribbon, one unpaired pumpkin at the end.

Every Second Item Free: Pricing Promotions With ROW_NUMBER

May 27, 2019
Pinal Dave
SQL Tips and Tricks
Ranking Functions, SQL Function, SQL Scripts, SQL Server

Price every second item as free with ROW_NUMBER, expand quantities into units, and calculate basket discounts without double counting.

Read More
An empty park bench under falling blossoms shows why appearance alone cannot establish its last use

When was Table Accessed Last By User? – Interview Question of the Week #226

May 26, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL DMV, SQL Index, SQL Scripts, SQL Server, SQL Table Operation

When was a table accessed last by a user? When clients say a table is rarely used, I run this report to check before we create or drop indexes.

Read More
Gouache painting of a sleeping bag beside another squeezed into a stuff sack with a vermilion strap

Page and Row Compression in SQL Server: Estimate, Enable, Remove

May 22, 2019
Pinal Dave
SQL Tips and Tricks
Compression, SQL CPU, SQL Scripts

Page and row compression shrink a table or index, and each one is a single ALTER statement. This post estimates the savings first, turns each level on and off in a demo, and measures what the page rebuild costs in CPU.

Read More
Login vs User

SQL SERVER – Difference Between Login Vs User – Security Concepts

May 21, 2019
Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Scripts, SQL Server, SQL Server Security

In this blog post, we discuss the difference between Login Vs User – Security Concepts. They look the same but actually, they are totally different.

Read More
A newly lit pendant lamp illuminates an extinguished candle

When Was SQL Server Last Restarted? – Interview Question of the Week #225

May 19, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL DMV, SQL Scripts, SQL Server, SQL TempDB, Starting SQL

When was SQL Server last restarted? It is my first question in every Health Check, because a restart empties the DMVs and their performance history.

Read More
Table with SQL Server Data Types.

SQL SERVER – Stored Procedure sp_datatype_info to Get Supported Data Types

May 16, 2019
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Scripts, SQL Server

Forget which data types your SQL Server version supports? I run sp_datatype_info, which lists every supported type with precision, nullability and searchability.

Read More
Previous 1 … 72 73 74 75 76 77 78 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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