tsql - Table should be created using year month and date in SSIS? -
i have folder .xlsx
file every day. have ssis
copy data .xlsx
file table stackdata
. need create ssis
package such way when run package table
should created year month , date stachdata_20130819
.
declare @d char(10) = convert(char(8), getdate(), 112); if object_id('report_temp.msk_traffic_backup_' + @d) null begin declare @sql nvarchar(max) = n'select * report_temp.msk_traffic_backup_' + @d + ' property.door_traffic;'; print @sql; --exec sp_executesql @sql; end
Comments
Post a Comment