Os comandos SQL mostrados abaixo, executados no SQL Server 2008 R2, permitem criar duas tabelas temporárias:
#temp1 e ##temp2, respectivamente, dos tipos local e global.
CREATE TABLE #temp1 (col1 INT PRIMARY KEY)
GO
CREATE TABLE ##temp2 (col1 INT PRIMARY KEY).
Fonte: ATIVIDADE TéCNICA DE COMPLEXIDADE GERENCIAL - ARQUITETO DE SISTEMAS / MEC / 2011 / CESPE