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
Stepping stones crossing a misty pond, a sequence with gaps

SQL SERVER – Find Gaps in The Sequence

September 6, 2009
Pinal Dave
SQL Tips and Tricks
SQL Identity, SQL Scripts, SQL Server

How do you find gaps in a Sequence of numbers? A reader asked, and two experts, Brian and Tejas, replied with good scripts. Here are both solutions.

Read More
Three wooden specimen trays hold leaves, seed pods and stones beside a magnifying glass.

PERCENTILE_DISC: Return an Observed Percentile Value

September 4, 2009
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Server

PERCENTILE_DISC selects from the supplied observations. Preserve duplicates and distinguish an observed threshold from an interpolated value.

Read More
A rich painting of a grocer studying three fruit baskets and two fruit pairings on a sunlit counter.

Data Mining: A Simple Introduction and a SQL Basket Example

September 3, 2009
Pinal Dave
SQL Tips and Tricks
Business Intelligence, Data Warehousing, SQL Server

Market-basket analysis turns purchases into measurable product relationships. Deduplicate products within each order, calculate support, confidence and lift in T-SQL, and interpret the counts before drawing conclusions from a small sample.

Read More
SQL SERVER - Mirrored Backup and Restore and Split File Backup - Introduction

SQL SERVER – Mirrored Backup and Restore and Split File Backup – Introduction

September 2, 2009
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Data Storage, SQL Scripts, SQL Server

Backup and Restore lessons from my consulting work: conventional backups, split file backups, mirrored backups and the FORMAT clause, each with an example.

Read More
Gouache painting: two identical thimble-sized brass measures stand on a white saucer

DATEADD Nanoseconds: Round to datetime2 Ticks

September 1, 2009
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Server

DATEADD nanoseconds do not provide single-nanosecond storage. Test rounding thresholds with an explicit datetime2(7) input.

Read More
A hand fits a round-pin charger plug into a red travel adapter on a desk

Oracle to SQL Server: Translating NVL, ROWNUM and Sequences

August 31, 2009
Pinal Dave
SQL Tips and Tricks
Oracle, SQL Migration, SQL NULL, SQL Server

Translate Oracle to SQL Server expressions for NULLs, row limits, dates, sequences and concatenation, and test where they differ.

Read More
Bell ropes in a tower ringing chamber, most tied up out of reach, one hand gripping the single free rope.

Central Management Servers and Registered Servers

August 30, 2009
Pinal Dave
SQL Tips and Tricks
DBA, SQL Server, SQL Server Management Studio, SQL Utility

Use Central Management Servers and registered servers in SSMS to organize SQL Server instances and run safe read-only queries across groups.

Read More
Previous 1 … 356 357 358 359 360 361 362 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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