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 expected answer.

SQL SERVER – Add Identity Column to Table Based on Order of Another Column

May 30, 2013
Pinal Dave
SQL Tips and Tricks
SQL Identity

A reader wants to add identity column values to an existing table in the order of another column, not the default order. Here is my answer. Do you know a better one?

Read More
Gouache painting of an empty bowl and a stone-filled bowl on a balance, above matching empty and occupied wooden recesses.

ANSI_NULLS Puzzle and NULL in SQL Server: SQL in Sixty Seconds #052

May 29, 2013
Pinal Dave
SQL Video
SQL Deprecated Feature, SQL in Sixty Seconds, SQL NULL, SQL Scripts

This ANSI_NULLS puzzle starts with two queries that look alike, and only one returns a row. The tests here explain the NULL logic behind IN and NOT IN, show what SET ANSI_NULLS OFF still does on SQL Server 2025, and give a safer pattern for real queries.

Read More
Empty result in query.

SQL SERVER- Solution – SQL Puzzle of SET ANSI_NULL

May 28, 2013
Pinal Dave
SQL Puzzle
SQL Scripts

The solution to my Puzzle of SET ANSI_NULL: why IN returns a row but NOT IN returns nothing when the list has a NULL, and how SET ANSI_NULLS ON explains it.

Read More
SQL SERVER - How to INSERT data from Stored Procedure to Table - 2 Different Methods

SQL SERVER – How to INSERT data from Stored Procedure to Table – 2 Different Methods

May 27, 2013
Pinal Dave
SQL Tips and Tricks
SQL Stored Procedure

How do you INSERT data from stored procedure results into a table? I show 2 methods: one when the table exists and one when it is created at run time.

Read More
Gouache painting of a small sailboat at a dock with gear laid out in a row, rope, sail, lantern, bucket and a vermilion life ring.

Blog Launch Checklist: What to Set Up Before Your First Post

May 26, 2013
Pinal Dave
Personal
Best Practices, Blogging, WordPress

A blog launch checklist saves you from mistakes that are hard to fix later. This post walks through domain and HTTPS, a phone-friendly theme, the About page, search, categories, ways to follow, analytics, tested backups and the first three posts.

Read More
Two bumblebees at one red poppy, one landed and the other veering away.

Snapshot Isolation Update Conflicts: Handling Error 3960

May 25, 2013
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Lock, SQL Server, SQL Transactions, Transaction Isolation

Reproduce snapshot isolation update conflict error 3960, compare read committed snapshot, and retry the whole transaction safely.

Read More
Gouache painting of a wooden card box full of blank index cards with a pencil, one card standing up in a vermilion clip.

Blog Ideas: What to Do When You Run Out of Things to Write

May 24, 2013
Pinal Dave
Personal
Best Practices, Blogging, Professional Development

Every blogger hits the day when the list of blog ideas is empty. This post shows where new topics come from: your own questions, reader comments, mistakes you fixed and old posts that deserve a better answer, plus a simple way to keep an idea list.

Read More
Previous 1 … 483 484 485 486 487 488 489 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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