Link to home
Start Free TrialLog in
Avatar of dshi15
dshi15Flag for United States of America

asked on

Sql server temp table

Hi Expert,

select * into tmpBusLine from BusinessLine

Is tmpBusLine a temp table? What is different between it with #tmpBusLine and what its scope?

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Aaron Tomosky
Aaron Tomosky
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dshi15

ASKER

you mean tmpBusLine is not temptable?
Avatar of dshi15

ASKER

I should say 'you mean tmpBusLine is not  temporary table?'
tmpBusLine - physical table
@tmpBusLine - table variable
#tmpBusLine - temporary table which can be accessed in the query window. When you close the window, the table will be destroyed. Tis table resides in session of sql server
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial