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
SQL SERVER - Detailed Explanation of Transaction Lock, Lock Type, Avoid Locks

SQL SERVER – Detailed Explanation of Transaction Lock, Lock Type, Avoid Locks

August 18, 2008
Pinal Dave
SQL Performance
SQL Error Messages, SQL Scripts, SQL Server Security, SQL Transactions

How do you find which table has a transaction lock and what lock type it is? Imran Mohammed explains it for SQL Server 2000 and 2005, and how to avoid locks.

Read More
Seven smooth stones on a wooden tray beside a sage bowl, with one stone tied in red ribbon and a pale folded cloth.

Stable Weekday Numbers Without Changing DATEFIRST

August 17, 2008
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts

Stable weekday numbers use a fixed Monday anchor and negative-safe modulo. Map Monday to one without changing DATEFIRST or session language.

Read More
A long string of bunting laid out on a village green while two hands check the last knot

Generating Backup Commands for Every Database With STRING_AGG

August 17, 2008
Pinal Dave
SQL Tips and Tricks
DBA, SQL Backup and Restore, SQL Scripts, SQL String

Use STRING_AGG for generating backup commands with copy-only backups, checksums, safe database names, and dated files for careful review.

Read More
SQL SERVER - 2008 - Introduction to Online Indexing Operation

SQL SERVER – 2008 – Introduction to Online Indexing Operation

August 15, 2008
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server

An introduction to online indexing in SQL Server, which lets you create or rebuild an index while the table stays available to your app.

Read More
A hand cutting a sugarcane stalk at its natural joints on a chopping block, the cut sections lying in a row beside it.

Splitting a URL Into Host, Path and Query String in T-SQL

August 13, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL String

Practice splitting a URL into host, path, and query values with T-SQL string functions, SQL Server 2025 regex, and ordered parameter rows.

Read More
Gouache painting: two wooden fermenting vats stand on a cellar floor, one narrow and one wide

ABS: Widen an Integer Before Taking Its Magnitude

August 10, 2008
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Function, SQL Scripts, SQL Server

ABS can overflow even when the negative input fits its signed integer type. I widen the input before asking for its magnitude. Casting the output afterward would be too late to protect the calculation.

Read More
SQL SERVER - EXCEPT Clause in SQL Server is Similar to MINUS Clause in Oracle

SQL SERVER – EXCEPT Clause in SQL Server is Similar to MINUS Clause in Oracle

August 7, 2008
Pinal Dave
SQL Performance
SQL Joins, SQL Scripts

Is there a MINUS clause in SQL Server like in Oracle? Yes, EXCEPT returns the rows of the first query that are not in the second. Example included.

Read More
Previous 1 … 306 307 308 309 310 311 312 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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