Create a Temporary or In-Memory Table

For a temporary table that is local to the session:
CREATE TEMP TABLE MyTable(...);
For a temporary table that is local to the session:
CREATE TABLE #TempPhysical(...);
For a temporary table that is visible to everyone:
CREATE TABLE ##TempPhysicalVisibleToEveryone(...);
To generate an in-memory table:
DECLARE @TempMemory TABLE(...);
Last modified 1d ago