ssis

SSIS sequence container: Setting conditional parameters for when file is not present

隐身守侯 提交于 2021-02-08 08:50:14
问题 I'm hoping someone can offer another couple of points of view on an issue I am having with SSIS sequence containers. I am relatively new to sequence containers and they are accomplishing what need to be done, but here's the situation: Let's suppose I have three sequence containers and they all process files. Containers A, B, and C. Container A will always process because it unzips files, but container B may not perform actions based on whether or not a file exists and the same with container

The year function doesn't support dt_wstr

北城以北 提交于 2021-02-08 04:59:31
问题 I am unable to apply transformation using below code. getting error The year function doesn't support dt_wstr. The expression iam using is: (DT_I4)((DT_WSTR,4)YEAR(fisc_wk_end_dt) + RIGHT("0" + (DT_WSTR,2)MONTH(fisc_wk_end_dt),2) + RIGHT("0" + (DT_WSTR,2)DAY(fisc_wk_end_dt),2)) 回答1: Problem From the expression you mentioned, it looks like fisc_wk_end_dt column data type is string while YEAR, MONTH, DAY function's parameters must be of type date. From the official documentation: Syntax YEAR

SSIS ForEach File loop - insert file name to table

橙三吉。 提交于 2021-02-08 03:41:15
问题 I'm building a SSIS package (using VS 2017) to load a bunch of CSV files from a specific folder. It works great using the ForEach File loop. Data Flow task has a Flat File Source and OLE DB Destination. I want to be able to save the filename in the same table, along the data from the CSV file. How can I do this?? thanks a lot for your time and help 回答1: One other method if you want to load the entire file path of the flat files is Right click on Flat File Source in Data Flow tab Click "Show

SSIS ForEach File loop - insert file name to table

ぃ、小莉子 提交于 2021-02-08 03:41:09
问题 I'm building a SSIS package (using VS 2017) to load a bunch of CSV files from a specific folder. It works great using the ForEach File loop. Data Flow task has a Flat File Source and OLE DB Destination. I want to be able to save the filename in the same table, along the data from the CSV file. How can I do this?? thanks a lot for your time and help 回答1: One other method if you want to load the entire file path of the flat files is Right click on Flat File Source in Data Flow tab Click "Show

Lookup component fails to match empty strings when full cache is used

▼魔方 西西 提交于 2021-02-07 18:28:45
问题 I have lookup component a with a lookup table that retusn a varchar(4) column with 3 possible values: "T", "R" or "" (empty string). I'm using an OLE DB connection for the lookup table, and have tried direct access to the table, as well as specifying a query with an RTRIM() on the column, to get sure that the string is empty and not a "blank string of some length". If I set the cache mode to "Partial cache" everything works fine (either with direct reading of the table, or using the trimming

Enumerating RecordSet in DataFlow Script Component as Data Source

大兔子大兔子 提交于 2021-02-07 14:53:52
问题 This is an SSIS related issue I have a variable that is set to type object. One Dataflow imports some filtered rows into a recordset and this recordset is stored in the object variable. In a completely seperate dataflow i need to use that recordset as the source. So i created a script component and told it it would be a data source. I set it up to have the three output columns that i need. My problem is, how do i get every row in the recordset to create a new row in the script component? I

SSIS TFS configuration

戏子无情 提交于 2021-02-07 10:53:28
问题 I am trying to source control ssis packages Installed TFS server component and created Team project collection. There is no plug in to select in DATA TOOL->Option->Source control->Plugin How to do this on SSIS 2012 !? I have also installed explorer and expecting the visual studio level check in facility would appear in SSIS Data tools. 回答1: Assuming you have installed TFS 2012, and installed Team Explorer for VS 2012. after creating Team Project Collection, you also need to create a Team

SSIS TFS configuration

痞子三分冷 提交于 2021-02-07 10:52:15
问题 I am trying to source control ssis packages Installed TFS server component and created Team project collection. There is no plug in to select in DATA TOOL->Option->Source control->Plugin How to do this on SSIS 2012 !? I have also installed explorer and expecting the visual studio level check in facility would appear in SSIS Data tools. 回答1: Assuming you have installed TFS 2012, and installed Team Explorer for VS 2012. after creating Team Project Collection, you also need to create a Team

Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime - Researched solutions not working

有些话、适合烂在心里 提交于 2021-02-07 09:24:25
问题 The following is my full error: Error in Microsoft.SqlServer.Dts.Runtime.TaskHost The Execute method on the task returned error code 0x80131621 (Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information. The Execute method must succeed, and indicate the result using an "out" parameter. I have found possible solutions here and here however I am still getting the above error. The following is my

Build “*.DTPROJ” - SSIS on the build server with devenv.exe (Visual Studio 2012)

荒凉一梦 提交于 2021-02-07 08:16:24
问题 I'm trying to build a SSIS project (*.dtproj) with Visual Studio 2012 on the build server. As far as I know there's no support to build this kind of project directly using MSBuild. However my thinking is that if I can build it using the Visual Studio 2012 IDE locally, I would be able to build it using the Visual Studio command line (calling devenv.exe/devenv.com) directly from a command line on the build server But I have tried so many combinations and I have not been able to find anything