mfairchild
Programmer
I'm putting a clustered index on a temp table in a stored proc and keeping getting the message "Index (ID = 2) is being rebuilt" when the results are returned. I know what the message means, but I don't know how to suppress it. The temp table has no other indexes on it. Anyone have any ideas?
Sample code:
Create Table #TempTable
(Field1 int)
INSERT INTO #TempTable (Field1)
SELECT Field1
FROM AnotherTempTable
CREATE CLUSTERED INDEX Field1_TempTable_idx
ON #TempTable (Field1)
Sample code:
Create Table #TempTable
(Field1 int)
INSERT INTO #TempTable (Field1)
SELECT Field1
FROM AnotherTempTable
CREATE CLUSTERED INDEX Field1_TempTable_idx
ON #TempTable (Field1)