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
A small teacup lost inside a huge box of packing straw, next to a snug little box holding a matching cup.

Data Types That Waste Space

May 10, 2007
Pinal Dave
SQL Performance
Best Practices, SQL Data Storage, SQL Datatype, SQL Index, SQL Server

Data types that waste space include oversized integers, blanket nvarchar(max), and unnecessary datetime2 precision; measure before changing.

Read More
A hand lifting a perfect-looking wax lemon from a bowl of real lemons on a kitchen table.

REGEXP_LIKE in SQL Server 2025: Validating Codes, Emails and Phone Numbers

May 7, 2007
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Function, SQL Server, SQL String

Validate codes, email shapes and phone numbers with REGEXP_LIKE in SQL Server 2025, using clear patterns and CHECK constraints.

Read More
A woven willow arch on a wooden bench with a taut string crossing it at two red-marked points.

ASIN: A Sine Ratio Does Not Recover Every Original Angle

May 4, 2007
Pinal Dave
SQL Tips and Tricks
Mathematical Function, SQL Function, SQL Server

ASIN returns an angle from a sine ratio. Preserve the original branch, use explicit units and keep invalid or missing ratios visible.

Read More
A pile of unsorted paper on a desk beside a neatly filed drawer with tabs

What Is a Heap in SQL Server?

May 4, 2007
Pinal Dave
SQL Performance
Best Practices, SQL Index, SQL Performance, SQL Server

A heap in SQL Server is a table with no clustered index. Forwarded records pushed one count from 11,113 reads to 199,844, and a single REBUILD put it back. When a heap is fine and when it is not.

Read More
A rich gouache cabinet separates ceramic pieces, carved molds and brass connectors in three independent drawers.

SQL SERVER – What DBCC Memory Cache Commands Actually Clear

May 3, 2007
Pinal Dave
SQL Tips and Tricks
SQL Memory, SQL Scripts, SQL Server, SQL Server DBCC, SQL Stored Procedure

SQL Server retains memory caches to support later work. I investigate memory pressure before trying to release them.

Read More
A gouache key cupboard keeps a heavy brass key separately from everyday keys, beside a closed lockbox.

SQL SERVER – Enable Login – Disable Login using ALTER LOGIN – Change name of the ‘SA’

May 3, 2007
Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Scripts, SQL Server, SQL Server Security

ALTER LOGIN can enable, disable or rename a SQL Server login. I verify another administrative access path before changing sa.

Read More
Two nearly identical brass keys lying side by side on a workbench, one cut with a single notch in a different place.

SQL SERVER – Collate – Case Sensitive SQL Query Search

April 30, 2007
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Scripts, SQL Search, SQL Server, SQL Utility

Make a SQL Query Search case sensitive: add COLLATE Latin1_General_CS_AS to the WHERE clause so ‘casesearch’ matches one row instead of all four.

Read More
Previous 1 … 446 447 448 449 450 451 452 … 455 Next
  • Books
  • Testimonials
  • Privacy Policy

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