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 long sheet of rolled dough cut into many identical shapes in one press, a single small cookie cutter lying beside it.

Replacing a Cursor With a Set-Based Query

July 25, 2007
Pinal Dave
SQL Performance
SQL Cursor, SQL Joins, SQL Scripts, SQL Server

Replacing a cursor with one set-based update can simplify row processing; this worked example shows correctness checks and fair timing.

Read More
Gouache painting: at a market stall a wicker basket holds one whole peach, the largest, left behind

XQuery FLWOR: Filter and Rebuild a Small XML Result

July 25, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL XML

XQuery FLWOR can iterate over source items and construct a different XML result. I use it to filter three products and reorder the survivors. The new elements deliberately differ from the source elements.

Read More
A row of brass bell cranks with one pulled and its wire taut

SQL SERVER – 2005 – Server and Database Level DDL Triggers Examples and Explanation

July 24, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure, SQL Trigger

DDL triggers fire when someone changes the schema. How to write one, what EVENTDATA gives you, and how to get back in if one locks you out.

Read More
Wall covered with many vintage clocks showing different times

SQL SERVER – UDF – Function to Get Previous And Next Work Day – Exclude Saturday and Sunday

July 23, 2007
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

Inspired by a ColdFusion post by Ben Nadel, here is the UDF I use to get the previous or Next Work Day for any date, skipping Saturday and Sunday.

Read More
Painted fishing buoys hanging on a harbor wall in color groups, a few bare, one red buoy among the blue

Grouping Current Connections by Program Name and Host Name

July 22, 2007
Pinal Dave
SQL Tips and Tricks
DBA, SQL Connection, SQL DMV, SQL Login, SQL Server

Group connections by program name, host, and login, then inspect client addresses and idle sessions without trusting client labels blindly.

Read More
SQL SERVER - Fix : Error Msg 4214 - Error Msg 3013 - BACKUP LOG cannot be performed because there is no current database backup

SQL SERVER – Fix : Error Msg 4214 – Error Msg 3013 – BACKUP LOG cannot be performed because there is no current database backup

July 20, 2007
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Error Messages, SQL Scripts, SQL Server

Fix the SQL Server error Msg 4214 and Msg 3013, where BACKUP LOG fails because no current database backup exists. Here is why it happens.

Read More
Gouache painting: on a laundry table, two wool sweaters lie side by side, the same cream color, each with the same vermilion loop at the collar

CHECKSUM: A Matching Result Does Not Prove Text Identity

July 16, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server

CHECKSUM matches do not establish unchanged text. Preserve complete values and compare hyphen and trailing-space differences explicitly.

Read More
Previous 1 … 431 432 433 434 435 436 437 … 447 Next
  • Books
  • Testimonials
  • Privacy Policy

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