0

I'm just wondering why # was used while creating this temporary table.

create table **#tmp** ( 
  Things to wonder about
)

The query works perfectly fine with/without it.

SuperMan
  • 1
  • 3

1 Answers1

0

vc74 answered the question

In SQL server a single # needs to prefix the name of local temporary tables. If you omit it, you're actually creating a non temporary table. – vc 74

SuperMan
  • 1
  • 3