Question : transformations to a temp table in DTS

I have a DTS package that is importing 2 columns into a staging table.  My boss doesn't want the staging table cluttering up our core product since this is really maintenance I think.  So I want to change my existing transformation which is going from Excel to that table to now reference a temp table.  When I am in DTS though in the Destination tab for the transformation, I don't see temp tables.  Is there a way to reference my temp table in the destinations tab?

Answer : transformations to a temp table in DTS

You can add 2 execute sql tasks to your DTS - one before transformation task, one after transformation task.
The first one:

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[your_staging_table]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[x]
GO
CREATE TABLE your_staging_table (Field1 INT, ....)

The second one: DROP TABLE your_staging_table
Random Solutions  
 
programming4us programming4us