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
Restore Database Options.

SQL SERVER – FIX – ERROR : Cannot drop the database because it is being used for replication. (Microsoft SQL Server, Error: 3724)

September 5, 2009
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Replication, SQL Scripts

Error 3724 stops you from dropping a database once used for replication. My simple fix: back up an empty database with the same name and force a restore.

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
Illustration for this post

SQLAuthority News – Baby SQLAuthority is here!

September 1, 2009
Pinal Dave
SQLAuthority News

Baby SQLAuthority is here! God has blessed Nupur and me with a healthy baby girl on September 1, 2009. Do you have a suggestion for an Indian name?

Read More
Previous 1 … 692 693 694 695 696 697 698 … 849 Next
  • Books
  • Testimonials
  • Privacy Policy

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