How to create a temp table in SSIS

  • Is there a way to create a temp table in SSIS (memory) that can be accessed by an OLE Source?

    thanks - tom

  • Do u mean like an execute SQL task creating the temp table and then the OLEDB source in a data flow task access it.... u can.

    for the source to read the temp table work with the SET FMTONLY option. Lookup in BOL.

  • Not sure if this is what you are looking for, but I have used this method to create memory tables to temporarily store data.

    declare @dbs as varchar(100)

    declare @recmodeltbl table(modeltype varchar(100))

    set @dbs='xyz'

    insert into @recmodeltbl select convert(varchar(100),DATABASEPROPERTYEX (@dbs , 'Recovery'))

    select @recovery_model = modeltype from @recmodeltbl

    May your fish always be bigger
    Than the holes on your net.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply