msbi

Yesterday's date in SSIS package setting in variable through expression

别等时光非礼了梦想. 提交于 2019-12-06 04:54:13
I am setting a variable in SSIS package and I'm using this expression: DATEPART("yyyy", GETDATE())*10000 + DATEPART("month", GETDATE())*100 + DATEPART("day",GETDATE()) The expression will give me a variable value like 'yyyymmdd'. My problem is that I want yesterday's date. For example on 11/1/2014 it should be 20141031 Rangani You can use DATEADD function your expression would be : DATEPART("yyyy", DATEADD( "day",-1, GETDATE()))*10000 + DATEPART("month", DATEADD( "day",-1, GETDATE())) * 100 + DATEPART("day", DATEADD( "day",-1, GETDATE())) less code... CONVERT(varchar(8), DATEADD(dd,-1,GETDATE(

Difference between ADO NET source and OLE DB Source in SSIS 2008?

社会主义新天地 提交于 2019-12-04 22:49:08
Can anyone say the Difference between ADO NET source and OLE DB Source in SSIS 2008 ?are they both same in any context ? With small datasets there is little difference between ADO NET source and OLE DB Source in SSIS 2008. The difference between them is how they communicate with their underlying data sources. OLEDB talks directly to OLEDB compliant sources, but ADO .NET source talks through a .NET provider. The only reason you should use the ADO.NET source is: There no OLE DB providers available. If you need data access from within a script task. If you need to pass a data source to a custom