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: a frosted-glass window over a market stall, fruit shapes blurred behind it, one vermilion pomegranate seen sharp and clear

Masking Functions in SQL Server: What Each One Shows

August 2, 2023
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Scripts, SQL Server 2022, SQL Server Security

Dynamic data masking hides values at query time, and the masking functions decide what a reader still sees. This post tests default, email, partial, random and datetime on SQL Server 2025 and shows what each one returns. It also covers adding and dropping a mask on an existing column.

Read More
A wisteria-covered pergola shading a garden table, a newly added chair already sitting in its shade.

Schema-Level Permissions: Granting on a Schema, Not Each Object

July 25, 2023
Pinal Dave
SQL Tips and Tricks
DBA, Schema, SQL Server, SQL Server Security

Apply schema-level permissions to a database role, include future tables automatically, separate internal data, and review grants.

Read More
password policy

SQL SERVER – Setting up a Robust Password Policy

July 17, 2023
Pinal Dave
SQL Tips and Tricks
SQL Password, SQL Server Configuration, SQL Server Security

Today’s topic of Setting up a Password Policy often emerges during my Comprehensive Database Performance Health Check consultations.

Read More
A puppeteer's hands gathering a marionette's loose strings onto one wooden control bar

Finding Permissions Granted Directly to Users Instead of Roles

June 1, 2023
Pinal Dave
SQL Tips and Tricks
DBA, SQL Scripts, SQL Server Security

Find permissions granted directly to users, generate role-based review statements, and preserve DENY, column, and grant-option distinctions.

Read More
A kitchen dresser with plates and cups on open shelves, one shelf hidden behind a small drawn curtain.

Column-Level Permissions: Hiding One Column From Some Users

April 26, 2023
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Server, SQL Server Security, SQL View

Apply SQL Server column-level permissions, test DENY and SELECT behavior, inspect explicit grants, and compare views with data masking.

Read More
A hand holding a brass pass token to a locked iron turnstile between two sections of an empty stadium.

Cross-Database Ownership Chaining: Why It Is Off and What to Use

April 25, 2023
Pinal Dave
SQL Tips and Tricks
DBA, SQL Server Encryption, SQL Server Security, SQL Stored Procedure

Understand cross-database ownership chaining, inspect its scope, and use signed procedures for narrow access between SQL Server databases.

Read More
A cafe umbrella stand full of identical black umbrellas, each handle tied with a different colored ribbon.

Tagging Queries With SESSION_CONTEXT to Trace App Users

June 9, 2022
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Connection, SQL Server, SQL Server 2016, SQL Server Security

Tag SQL Server work with SESSION_CONTEXT, read tags in audit defaults and modules, and handle read-only values and pooled connections.

Read More
Previous 1 2 3 4 5 6 … 56 Next
  • Books
  • Testimonials
  • Privacy Policy

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