Forum Discussion
krypto6969
Helper II
10 years agoCan't use Temp Tables - really?
Using direct import to stored proc that uses temp table..get this error? WTF?
thephotobus
8 years agoFrequent Visitor
Or the parser hack I previously learned in SSIS...
IF 1 = 0
BEGIN
SELECT
'ColumnDefinition1' = CAST(NULL AS DATE), -- columns and data types in your final result set
'ColumnDefinition2' = CAST(NULL AS NVARCHAR(75)) -- etc.
END
/* Use temp tables until your heart is content */
/* Finish with a Select using the same definition as you defined in the top section */
stretcharm
Memorable Member
8 years agoYep like ssis you have to give it a bit of help.