sql-server: how to insert to temporary table?
Posted
by RedsDevils
on Stack Overflow
See other posts from Stack Overflow
or by RedsDevils
Published on 2010-04-09T02:34:51Z
Indexed on
2010/04/09
2:43 UTC
Read the original article
Hit count: 389
I have one Temporary Table
CREATE TABLE #TEMP (TEMP_ID INT IDENTITY(1,1))
And I would like to insert records to that table, How can I?I do as follow:
INSERT INTO #TEMP DEFAULT VALUES
But sometimes it doesn't work. What it might be?And I would like to know lifetime of temptable in MSSQL. Please Help me! Thanks all!
© Stack Overflow or respective owner