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
Unknown shapes emerge from a chute and are placed into an adjustable sorting frame

How to Create Temp Table From Stored Procedure? – Interview Question of the Week #140

September 17, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL Stored Procedure, Temp Table

How do you create a Temp Table from a stored procedure when you do not know its result set? Here is the OPENROWSET approach I use, and its drawbacks.

Read More
Small snorkeling fin casting an enlarged shadow on a cream wall

ROWCOUNT and PAGECOUNT: Faking a Big Table to Test Plans

September 6, 2017
Pinal Dave
SQL Tips and Tricks
SQL System Table, SQL Table Operation, Table Partitioning, Temp Table

You can tell the optimizer a three-row table has 10 million rows and watch the plan change. Here is how, and how to undo it.

Read More
A permanent shared workbench holds separate personal trays beside a foldable private bench

How is Oracle Temporary Table Different from SQL Server? – Interview Question of the Week #133

July 30, 2017
Pinal Dave
SQL Interview Questions and Answers
Oracle, SQL Server, Temp Table

How is an Oracle temporary table different from SQL Server temp tables? A question from our hiring interviews, with the syntax on both sides.

Read More
Incrementing Number.

SQL SERVER – Interesting Observation – Count of Temporary Table Re-generations

July 19, 2017
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Management Studio, Temp Table

A workshop attendee asked how to know the count of temporary table re-generations for a single temp table. Here is how I find it.

Read More
Clay ocarina openings beside their distinct matching plugs

Magic Numbers in Code: Replacing Status Codes With a Lookup Table

June 20, 2017
Pinal Dave
SQL Tips and Tricks
SQL System Table, SQL Table Operation, Table Partitioning, Temp Table

Nobody remembers what the 3 means. Give each status code an approved name, let the database enforce it, and leave your data alone.

Read More
Loose threads feed a loom and become a new piece of cloth

How to Insert Results of Stored Procedure into a Temporary Table? – Interview Question of the Week #124

May 28, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL Stored Procedure, Temp Table

How to insert results of stored procedure into a temporary table without creating the table first? Here is a simple script that shows the steps.

Read More
Current peony bloom beside retained fallen petal layers

Temporal History Queries: Indexing the History Table for Speed

March 1, 2017
Pinal Dave
SQL Performance
SQL System Table, SQL Table Operation, Table Partitioning, Temp Table

Your current table is tiny, but the AS OF question hides in the history table. See the reads before and after a key-first index, and what it costs.

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

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