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 museum display case with an untouched porcelain teacup inside and a clear set of fingerprints on the glass.

Auditing SELECT Statements on Sensitive Tables

October 18, 2009
Pinal Dave
SQL Tips and Tricks
DBA, SQL Audit, SQL Compliance, SQL Server Security

Auditing SELECT statements on sensitive tables needs a narrow database audit, protected files, volume checks, and active review.

Read More
A shop door at dusk with the shutter half down and a blank red board hanging beside it

Adding Business Hours to a Timestamp in T-SQL

October 17, 2009
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

Add business hours through a stored work calendar, skip closed dates and nights, and calculate ticket deadlines without a minute loop.

Read More
SQL SERVER - Recently Executed T-SQL Query

SQL SERVER – Recently Executed T-SQL Query

October 16, 2009
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Function, SQL Scripts, SQL System Table

fn_get_sql() and DBCC INPUTBUFFER will be deprecated. Use sys.dm_exec_query_stats and sys.dm_exec_sql_text to see each recently executed T-SQL query.

Read More
Fresh shoots and established seedlings share a tray beside an adjustable growth guide.

SQL SERVER – Enable Automatic Statistic Update on Database

October 15, 2009
Pinal Dave
SQL Performance
SQL Scripts, SQL Server, SQL Statistics

Automatic statistics updates respond to changing data and query needs. I inspect the setting and estimates before treating it as a tuning fix.

Read More
Gouache painting: two small trays sit side by side holding the same pair of shortbread rounds, one scalloped and one plain

VALUES Type Inference: Cast Before Combining Rows

October 14, 2009
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Scripts, SQL Server

VALUES type inference chooses a common column type. Preserve formatting-sensitive text by making source conversions explicit before combination.

Read More
SQL SERVER - Comic Slow Query - SQL Joke

Slow Query Cartoon: Filtered Indexes and Functions, Tested

October 13, 2009
Pinal Dave
SQL Performance
SQL Humor, SQL Index, SQL Performance, SQLAuthority Author Visit

This slow query cartoon from Community TechDays in Ahmedabad answers a slow query with questions, not an automatic index. The tests here measure a full index against a filtered index, show why a function on a column forces a scan, and show a parameter case where the filtered index is skipped.

Read More
SQL SERVER - Query Optimization - Remove Bookmark Lookup - Remove RID Lookup - Remove Key Lookup - Part 3

SQL SERVER – Query Optimization – Remove Bookmark Lookup – Remove RID Lookup – Remove Key Lookup – Part 3

October 12, 2009
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server

Part 3 of how to Remove Bookmark Lookup, RID Lookup and Key Lookup. A covering index holds every column the query uses in SELECT, JOIN and WHERE.

Read More
Previous 1 … 686 687 688 689 690 691 692 … 849 Next
  • Books
  • Testimonials
  • Privacy Policy

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