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 narrow net catches one fish while a broad net catches several fish

Interview Question of the Week #029 – Difference Between CHARINDEX vs PATINDEX

July 26, 2015
Pinal Dave
SQL Interview Questions and Answers

Compare CHARINDEX vs PATINDEX, test literal and wildcard searches, preserve positions, and use SQL Server 2025 REGEXP_INSTR when needed.

Read More
Gouache painting of four wheelbarrows in parallel each carrying part of a pumpkin pile, one pumpkin painted red

How to Find Queries Running in Parallel in SQL Server

July 25, 2015
Pinal Dave
SQL Performance
Parallel, SQL CPU, SQL Scripts, SQL Server

To find queries running in parallel, read max_dop and the CPU to elapsed ratio from the query stats view, then confirm with the plan XML. This post tests both on a two million row table. It also explains why the same query stays serial until its cost passes the threshold.

Read More
SQL SERVER - FIX – Property IsLocked is Not Available for Login

SQL SERVER – FIX – Property IsLocked is Not Available for Login

July 24, 2015
Pinal Dave
SQL Tips and Tricks
SQL Lock, SQL Scripts

Opening sa login properties in SSMS failed with Property IsLocked is not available for Login. I used Profiler to find the query returning NULL, and here is the fix.

Read More
Gouache painting of a row of ten clay flowerpots on a long wooden shelf, nine of similar height and one much taller, with a vermilion ribbon tied round the pot of middle height

Median Day Planning: Time Management That Survives a Normal Week

July 23, 2015
Pinal Dave
Personal
Best Practices, Career Advice, Life Lessons, Professional Development

Median day planning means sizing your week around a typical day, not your best one. This post shows how to measure your own median in ten workdays, split work into a commit list and a stretch list, and keep a small buffer. Your plan then survives a normal week.

Read More
A scale model of a house on a table with the real house visible through the window behind it

Test Data That Looks Like Production

July 22, 2015
Pinal Dave
SQL Tips and Tricks
DBA, SQL Sample Database, SQL Server Security, Testing

Test data that looks like production matches distributions, relationships, and volume without copying sensitive values into development.

Read More
SELECT results for a query on SQL Server permissions.

SQL SERVER – FIX – Server principal ‘Login Name’ has granted one or more permission(s). Revoke the permission(s) before dropping the server principal

July 21, 2015
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server Security

DROP LOGIN failed with Msg 15173 because the login had granted one or more permission(s) after an AlwaysOn cleanup. Here is how to find and revoke them.

Read More
SQL SERVER - Fix - Error: Msg 468, Level 16, State 9, Line 1

SQL SERVER – Fix – Error: Msg 468, Level 16, State 9, Line 1

July 20, 2015
Pinal Dave
SQL Tips and Tricks
SQL Error Messages

Msg 468 says SQL Server cannot resolve the collation conflict between two columns. I explain why it shows up, including with temp tables, and how to fix it.

Read More
Previous 1 … 364 365 366 367 368 369 370 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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