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 heavy book chained to a wooden library lectern, a reader's hands resting on its closed cover.

Letting an LLM Query SQL Server Safely: A Read-Only Login and Guardrails

January 1, 2024
Pinal Dave
AI
AI, SQL Login, SQL Server, SQL Server Security, SQL View

Let an LLM query SQL Server through a restricted login, approved views, enforced row filtering, execution limits, and query auditing.

Read More
SQL Server Fortune Cookies.

SQL SERVER – T-SQL Fortune Cookies

November 27, 2023
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL View

Fortune cookies contain uplifting messages that bring a smile after a good meal. Did you know they likely originated in America, not China?

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
Old and new drawer fronts are compared beside preserved vessels and supporting fittings.

SQL SERVER – Rename View

August 13, 2021
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL View

When I rename view objects, I inspect references and retained definitions first. SSMS and sp_rename both need dependency planning.

Read More
An intact assembled panel remains available beside its preserved source tiles and assembly jig.

SQL SERVER – Using NOEXPAND with Indexed View

August 6, 2021
Pinal Dave
SQL Performance
SQL Server, SQL View

NOEXPAND treats an indexed view as stored indexed data instead of expanding its base tables. Customer results have differed.

Read More
Gouache painting of a seedling in a glass jar on a windowsill with a vermilion watering can beside it

Query Hints on a View in SQL Server: Where OPTION Goes

July 14, 2021
Pinal Dave
SQL Tips and Tricks
Execution Plan, Query Hint, SQL Scripts, SQL View

Query hints on a view cannot sit inside the view. Learn where OPTION goes, what a view may contain, and how Query Store hints help.

Read More
Gouache painting of a wooden table with a bowl of pears in front of a leaning mirror, with a small vermilion magnifying glass between them

Table or View in SQL Server: Check With OBJECTPROPERTY

March 24, 2021
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Table Operation, SQL View, System Object

To settle table or view in SQL Server, ask OBJECTPROPERTY. This post builds a table, a view, a synonym and a procedure, and reads the answers for each. It also shows a trap with other databases and a catalog query for every object.

Read More
1 2 3 4 … 8 Next
  • Books
  • Testimonials
  • Privacy Policy

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