Anyone hit this one before?
NOTE: The error occurs at the end when attempting to insert into dbo.ProdTable.
< M!ke >
[small]Anything is possible if you don't know what you're talking about.[/small]
Code:
SELECT *
INTO #tempTable
FROM dbo.ProdTable
WHERE 1 = 0
INSERT #tempTable
SELECT --list of values from other tables; column count matches
TRUNCATE TABLE dbo.ProdTable
INSERT dbo.ProdTable
SELECT *
FROM #tempTable
Msg 213, Level 16, State 5, Line 1
Insert Error: Column name or number of supplied values does not match table definition.
< M!ke >
[small]Anything is possible if you don't know what you're talking about.[/small]