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.
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.
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