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
Fresh, fitted replacement and set-aside tiles surround one coordinated restoration tray.

SQL SERVER – MERGE Insert Update and Delete with an Isolated Example

June 8, 2010
Pinal Dave
SQL Tips and Tricks
SQL Joins, SQL Scripts, SQL Server

Merge Operations can combine conditional inserts, updates and deletes. I inspect the plan before making any claim about scans or speed.

Read More
SQL SERVER - Generate Database Script for SQL Azure

SQL SERVER – Generate Database Script for SQL Azure

June 4, 2010
Pinal Dave
SQL Tips and Tricks
SQL Azure, SQL Scripts, SQL Server

Scripts from a regular SQL Server database used to fail on SQL Azure. With SQL Server 2008 R2 you can generate a database script for SQL Azure. Here is how.

Read More
SQL SERVER - Stored Procedure and Transactions

SQL SERVER – Stored Procedure and Transactions

June 2, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Stored Procedure

Is a stored procedure transactional by itself? No. A simple example with three tables shows why stored procedure and transactions are separate things.

Read More
SQL SERVER – Precision of SMALLDATETIME – A 1 Minute Precision

SQL SERVER – Precision of SMALLDATETIME – A 1 Minute Precision

June 1, 2010
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Scripts

The precision of SMALLDATETIME is 1 minute. Seconds are rounded up or down to the nearest minute, and this simple example shows exactly how.

Read More
Gouache painting: two square slabs of pale clay overlap at one corner on a potter's table

geometry STUnion: Merge the Shared Area Only Once

May 31, 2010
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

geometry STUnion merges geometry coverage. These exact-coordinate rectangles distinguish a combined area from the sum of two areas, including duplicate coverage.

Read More
Two clusters of blue and pale beads on a linen strip separated by terracotta cord knots.

REGEXP_INSTR: Locate a Match or a Capture Group

May 30, 2010
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server

REGEXP_INSTR returns the position of a selected regular-expression match or capture group. I compare its positional arguments using one short string. This example needs SQL Server 2025 and database compatibility level 170.

Read More
A wooden mannequin hunts under sofa cushions while a small mannequin outside holds up the red car keys

SQL Error Riddles: Parent Keys Not Found and Other Classics

May 29, 2010
Pinal Dave
SQL Tips and Tricks
Primary Key, SQL Constraint and Keys, SQL Error Messages, SQL Humor

SQL error riddles have been passed around for years. Here are the classics, told kindly, with the real SQL Server error behind each punchline.

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

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