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 hand setting one red slider on a mixing desk

SQL Server on Virtual Machines: Settings That Matter

October 22, 2008
Pinal Dave
SQL Tips and Tricks
SQL CPU, SQL Memory, SQL Server, SQL Server Configuration, Virtualization

SQL Server on virtual machines needs deliberate CPU, memory, NUMA, and storage settings; learn what to inspect before blaming a slow query.

Read More
Gouache painting of a square bolt beside a round nut that does not fit, with the round nut painted red

Incorrect Syntax Near: When Compatibility Level Is the Cause

October 21, 2008
Pinal Dave
SQL Tips and Tricks
Compatibility Level, SQL Error Messages, SQL Scripts

Incorrect syntax near means the parser met a word it did not expect, and a low compatibility level is one cause. This post reproduces the error, shows how to read and raise the level, and covers the other common causes.

Read More
SQL SERVER - Transaction and Local Variables - Swap Variables - Update All At Once Concept

SQL SERVER – Transaction and Local Variables – Swap Variables – Update All At Once Concept

October 20, 2008
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Security, SQL Transactions

Two ideas with examples: transactions have no effect on local variables, and an UPDATE applies all its changes at once, which lets you Swap Variables in one go.

Read More
SQL SERVER - Get Common Records From Two Tables Without Using Join

SQL SERVER – Get Common Records From Two Tables Without Using Join

October 17, 2008
Pinal Dave
SQL Tips and Tricks
SQL Joins, SQL Scripts

Sachin wanted common records from two tables without writing a join condition. Imran Mohammed shows how INTERSECT in SQL Server 2005 does it.

Read More
A painting shows a walnut cabinet with nested storage trays and three unlettered wooden keys.

Closure Table: Read and Validate Hierarchy Paths

October 17, 2008
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Index, SQL Joins

A closure table stores ancestor and descendant paths. Read those relationships efficiently and compare them with the authoritative parent edges.

Read More
SQL SERVER - Get Numeric Value From Alpha Numeric String - UDF for Get Numeric Numbers Only

SQL SERVER – Get Numeric Value From Alpha Numeric String – UDF for Get Numeric Numbers Only

October 14, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL String

A simple UDF that gets only the numbers from an alpha numeric string, using PATINDEX and STUFF, with test values for empty, NULL and mixed strings.

Read More
Gouache painting: on a workbench, a pair of plain smooth brass tweezers holds one polished clay marble, while a wide wooden clamp holds a bundle of three marbles tied with string; a loose marble and a second tied bundle lie nearby, one string vermilion

JSON_QUERY or JSON_VALUE: Match the JSON Shape

October 13, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL NULL, SQL Server, SQL String

JSON_QUERY or JSON_VALUE depends on the JSON shape you need. One read-only document exposes scalar, object, array, JSON null and missing-path results side by side.

Read More
Previous 1 … 489 490 491 492 493 494 495 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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