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 tall stack of pancakes on one plate and a fresh plate with a single pancake, a hand adding the next one.

Running Totals That Reset Every Month

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

Calculate running totals that reset by calendar month, customer, or fiscal period, using stable ordering and explicit ROWS frames.

Read More
A heavy sled hauled almost to the top of a snowy slope, its red rope trailing back down

Before You KILL a Session: Estimating the Rollback Cost

February 4, 2021
Pinal Dave
SQL Tips and Tricks
DBA, SQL Lock, SQL Server, SQL Transactions

Before you KILL a session, inspect its transaction age, log bytes, current command, and likely rollback work, then monitor the undo safely.

Read More
Hide in Code

Hide Code in SSMS – SQL in Sixty Seconds #154

February 3, 2021
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Scripts, SQL Server, SQL Server Encryption, SQL Server Management Studio, SQL Server Security, SQL Stored Procedure

I have received so many emails from all of you to create a video on the topic of SQL SERVER – Hide Code in SSMS. Here is the video on the topic.

Read More
Gouache painting of a wooden cabinet with a reddish-brown sliding door half closed over shelves of bowls and plates, with a small vermilion dot on the door

Hide Procedure Code in SSMS: What WITH ENCRYPTION Covers

February 2, 2021
Pinal Dave
SQL Tips and Tricks
SQL Server Encryption, SQL Server Management Studio, SQL Server Security, SQL Stored Procedure

To hide procedure code, create the procedure WITH ENCRYPTION. A demo shows what the clause blocks: the text, the definition and the plan. It also shows the ALTER trap that unhides a procedure, and why this is obfuscation and not security.

Read More
Gouache painting of a sorter board with round beads and a rejected square vermilion block

Digits in a Column: A CHECK Constraint for Digits Only

February 1, 2021
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts, SQL Server, SQL String

To keep only digits in a column, a CHECK constraint with NOT LIKE and a character range works, but it has two holes. It accepts an empty string and digits from other scripts. A demo closes both and shows NULL, trust and fixed length codes.

Read More
Zoom in SSMS

Zoom in SSMS – SQL in Sixty Seconds #153

January 29, 2021
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Server Management Studio

It is possible to zoom in SSMS (SQL Server Management Studio). A client asked me during a Health Check, so here is how to do it.

Read More
Gouache painting of a finished vermilion vase beside the empty plaster mold of its shape

ALTER SCHEMA TRANSFER: Move a Table to Another Schema

January 28, 2021
Pinal Dave
SQL Tips and Tricks
Schema, SQL Scripts, SQL Server, SQL View

ALTER SCHEMA TRANSFER moves a table to another schema and leaves repairs behind. A demo shows that permissions disappear and views break while the data stays. It also shows a synonym that keeps old queries working.

Read More
Previous 1 … 76 77 78 79 80 81 82 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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