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
The sentence Tom needs read access to the Budget table split into a principal (Tom), a permission (SELECT) and a securable (Finance.Budget), above the statement GRANT SELECT ON Finance.Budget TO Tom

Securables and Principals in SQL Server: Who Gets Which Permission

April 23, 2012
Pinal Dave
SQL Tips and Tricks
Schema, SQL Scripts, SQL Server, SQL Server Security

Securables and principals are the two nouns of SQL Server security, and a permission joins them. This post gives a user named Tom access to a Finance table, then uses GRANT, DENY and REVOKE and reads the permission list after each step. It ends with one grant on a whole schema. Every result comes from SQL Server 2025.

Read More
Pinking shears cut matching fabric strips while a rigid metal strip remains outside the blades

Columnstore Data Types: What Compresses Well and What Is Blocked

April 22, 2012
Pinal Dave
SQL Tips and Tricks
ColumnStore Index, Compression, SQL Data Storage, SQL Datatype

A great compression number means little if the index rejects one column. Here is how to test both questions on your own server.

Read More
SQL SERVER - Working with FileTables in SQL Server 2012 - Part 3 - Retrieving Various FileTable Properties

SQL SERVER – Working with FileTables in SQL Server 2012 – Part 3 – Retrieving Various FileTable Properties

April 21, 2012
Pinal Dave
SQL Tips and Tricks
Filestream, SQL Scripts, SQL Server

Part 3 of my FileTables series for SQL Server 2012: queries to tell files from folders and find root paths, path locators and relative paths.

Read More
A pile of washed white laundry turned pink, a hand holding up the single red sock that caused it.

Finding the Worst Query in Five Minutes With Query Store

April 20, 2012
Pinal Dave
SQL Performance
Query Store, SQL CPU, SQL Performance, SQL Server

Find the worst query with Query Store totals, compare CPU and duration over the last day, inspect plans, and choose the first tuning target.

Read More
A hand sweeping fallen cherry petals off a stone path with a red broom as new petals drift down

Tuning Step One: Capture a Wait Stats Baseline Before Changing Anything

April 19, 2012
Pinal Dave
SQL Performance
DBA, SQL DMV, SQL Performance, SQL Wait Stats

Capture a wait stats baseline, compare two saved snapshots, reject reset intervals, and rank meaningful waits before changing settings.

Read More
Three porch hooks: a flowering basket, a basket of bare soil, and one empty hook with nothing on it.

JSON_PATH_EXISTS and Typed ISJSON in SQL Server 2022

April 18, 2012
Pinal Dave
SQL Tips and Tricks
JSON, SQL Constraint and Keys, SQL Function, SQL Server, SQL Server 2022

Validate payloads with JSON_PATH_EXISTS and typed ISJSON in SQL Server 2022, distinguish null from missing, and enforce a clear contract.

Read More
cheatsheet

SQL SERVER Cheatsheet – Released for SQL Server 2012 Edition

April 17, 2012
Pinal Dave
SQL Tips and Tricks
Cheatsheet, SQL Documentation, SQL Download, SQL Server

The SQL SERVER Cheatsheet is updated for SQL Server 2012, now with SSMS shortcuts, Columnstore Index, and the datetime, ranking and analytic functions.

Read More
Previous 1 … 541 542 543 544 545 546 547 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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