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
Gouache painting: on a wooden floor, two open cloth sacks hold small square bean bags in red, blue, green and gray

EXCEPT: Compare Distinct Sets Including NULL

April 4, 2009
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

EXCEPT returns distinct left-side rows absent on the right. Compare direction, duplicates and NULL equality using complete small result sets.

Read More
Three nested storage boxes of decreasing size on a shelf, each with a dated label

What Is a Database Backup? Full, Differential, Log

April 2, 2009
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Backup and Restore, SQL Server

A database backup comes in three kinds and they work together. Measured sizes for full, differential and log, why the recovery model decides everything, and the restore order that cannot be improvised.

Read More
A hand lifts the last dark log from an old firewood bay into a canvas bag already holding dark logs and one pale log.

FIFO Inventory Costing in T-SQL: Matching Sales to Purchase Lots

April 1, 2009
Pinal Dave
SQL Tips and Tricks
Ranking Functions, SQL Joins, SQL Scripts, Temp Table

Which purchase lot paid for which sale? Two running totals and one join answer it, with no cursor and no loop.

Read More
Statement completion options.

SQL SERVER – IntelliSense Does Not Work – Enable IntelliSense

March 31, 2009
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Server Management Studio, SQL Utility

IntelliSense in SQL Server 2008 not showing suggestions? Four ways to Enable IntelliSense, starting with connecting to a 2008 instance and checking Tools, Options.

Read More
A tall woodpile against a cottage wall with space left for more, an axe in the chopping block, frost on the grass.

Planning for Data Growth

March 30, 2009
Pinal Dave
SQL Tips and Tricks
DBA, Disk, SQL Backup and Restore, SQL Data Storage

Planning for data growth uses backup and file trends, workload events, storage lead times, and a dated request for more capacity.

Read More
SQL SERVER - Fix : Error : Msg 2714, Level 16, State 6 - There is already an object named '#temp' in the database

SQL SERVER – Fix : Error : Msg 2714, Level 16, State 6 – There is already an object named ‘#temp’ in the database

March 29, 2009
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL TempDB

Msg 2714 says there is already an object named #temp in the database, even after an IF EXISTS check and DROP. A reader asked why, and here is the answer.

Read More
Matching red flower pots at tied heights and a gap in one ranking rack.

RANK vs DENSE_RANK: Keep Poll Ties at the Cutoff

March 27, 2009
Pinal Dave
SQL Tips and Tricks
Ranking Functions, SQL Function, SQL Order By

RANK vs DENSE_RANK gives tied vote totals different cutoff behavior. Keep display ordering separate from the tie criterion and rank each poll independently.

Read More
Previous 1 … 474 475 476 477 478 479 480 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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