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 SQL Server. Please Help me!
Thanks all!