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 - 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
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
A baker's hand fitting a star nozzle to a piping bag, a round nozzle set aside beside a half-decorated cake

OLE DB or ODBC for Connecting to SQL Server

October 11, 2008
Pinal Dave
SQL Tips and Tricks
Linked Server, SQL Connection, SQL Server, SSIS

Choose OLE DB or ODBC for SQL Server by the component you run, especially SSIS, linked servers, and applications using current drivers.

Read More
Gouache painting: on a straight farm lane two gateposts stand apart

SWITCHOFFSET Versus TODATETIMEOFFSET: Two Offset Operations

October 7, 2008
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Server

SWITCHOFFSET versus TODATETIMEOFFSET depends on the input contract. Preserve a known instant or attach an offset to a genuinely local clock.

Read More
A rounded terracotta pot in a long shallow blue-gray ceramic tray.

STR: Check Width and Reduced Decimal Places

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

STR can reduce decimal places when its requested width cannot hold the complete fractional display. I inspect the complete text, including spaces and signs. A populated result does not guarantee that the number remains visible.

Read More
A narrowboat rising in a canal lock, one of three locks stepping up a green hillside.

Patching an Availability Group in the Right Order

October 4, 2008
Pinal Dave
SQL Tips and Tricks
AlwaysOn, Cumulative Update, SQL High Availability, SQL Patch, SQL Server

Patching an Availability Group safely means updating secondaries first, checking synchronization, failing over, and updating the old primary.

Read More
A set of architect's drawings pinned flat on a drawing board with a scale rule laid across them, the drawn lines clear and no lettering anywhere.

What Is a Database Schema in SQL Server?

October 3, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, Developer, SQL Server

A database schema is a namespace inside a database. What dbo really is, why two tables can carry the same name, how a schema makes permissions something you set once, and why naming it in your code saves you from odd bugs.

Read More
Previous 1 … 375 376 377 378 379 380 381 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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