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 - Maximum Allowable Length of Characters for Temp Objects is 116 - Guest Post by Balmukund Lakhani

SQL SERVER – Maximum Allowable Length of Characters for Temp Objects is 116 – Guest Post by Balmukund Lakhani

May 1, 2012
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL TempDB, Temp Table

Object names in SQL Server can be up to 128 characters, but local temp tables stop at 116. Guest author Balmukund Lakhani explains this limit for Temp Objects.

Read More
A rotary egg beater rests between separate mixing bowls and a jug of already beaten mixture

CTE Referenced Twice: Why the Query Runs It Twice

April 16, 2012
Pinal Dave
SQL Performance
CTE, Execution Plan, SQL Group By, Temp Table

Writing a CTE name two times can mean doing the work two times. Two small demos show when a temp table helps and when it only adds cost.

Read More
Repeated bundles of loose bed slats sit beside the compact assembled bed frame

Triangular Joins: The Hidden Row Explosion in Self-Joins

April 6, 2012
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Group By, SQL Joins, Temp Table

A small grouped result can hide a huge pile of row pairs. Here is how to count them and what to do instead.

Read More
An egg slicer lowers parallel wires through one egg beside individually cut egg slices

Replacing a Running Total Cursor With a Window Function

March 16, 2012
Pinal Dave
SQL Tips and Tricks
SQL Cursor, SQL Function, SQL Order By, Temp Table

That loop adding to a variable can usually become one window function. Here is the proof that the balances match, and the tie trap to watch for.

Read More
A harbor seen from above with a grid of mooring buoys, small boats tied to most of them and a few buoys floating empty.

Numbers Table vs GENERATE_SERIES: Building Rows on Demand

February 16, 2012
Pinal Dave
SQL Tips and Tricks
SQL System Table, SQL Table Operation, Table Partitioning, Temp Table

Learn numbers table in SQL Server with practical examples, clear checks, common traps, and guidance for your own database.

Read More
A sandcastle on a beach half washed away by the sea, and beside it a red bucket of shells that stayed dry.

Table Variables vs Temporary Tables Quiz: Which Survives a Rollback?

January 14, 2012
Pinal Dave
SQL Puzzle
SQL TempDB, SQL Transactions, SQL Variable, Temp Table

This Table Variables vs Temporary Tables Quiz inserts one row into each, then rolls back. The table variable keeps its row and the temporary table loses it. A tested script proves it, and two more scripts show a rollback-proof log and the statistics gap.

Read More
Rinsed empty milk bottles on a doorstep at dawn waiting for reuse, one still wearing a red foil cap.

Temp Table Caching: Why Some Temp Tables Get Reused

November 1, 2011
Pinal Dave
SQL Performance
SQL Server, SQL Statistics, SQL Stored Procedure, SQL TempDB, Temp Table

Understand temp table caching in stored procedures, avoid cache blockers, inspect creation counters, and review retained statistics.

Read More
Previous 1 … 5 6 7 8 9 10 Next
  • Books
  • Testimonials
  • Privacy Policy

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