Gouache painting of a small test loaf in a vermilion paper cup beside a full loaf in a tin

Temporary Stored Procedures in SQL Server: Local and Global

Temporary stored procedures start with one # sign for a local one and two for a global one, and both live in tempdb. This post creates each kind on a demo database, shows who can call them and when they disappear, and explains which database their object names resolve in. It ends with the habit that makes them useful for testing a rewrite.

Read More