ssis-2012

Read an object variable having “FileInfo” object content in C# script task

廉价感情. 提交于 2021-02-11 14:53:41
问题 I'm trying to loop and read an object variable(as shown in the pic) where it has the file details(name/size/datemodified) from a share point location. Basically I need something similar to below code to just read the "Name" value. using System; using System.Data; using Microsoft.SqlServer.Dts.Runtime; using System.Windows.Forms; using System.Data.OleDb; using System.IO; using System.Collections; using System.Collections.Generic; public void Main() { var fileinfo = Dts.Variables["User::DvarObj

How to check if column is integer in conditional split component in ssis?

﹥>﹥吖頭↗ 提交于 2021-02-08 10:13:09
问题 I have the following SSIS package: In my package, flat file source data feeds into a conditional split component. One of the columns is AccountNo . That column in the flat file source output datatype is: string [DT_STR] . I want to check in the Constraint Check component if AccountNo is an integer. For example, maybe that column in the flat file source is this: 12355ss2rt3 and that input is not an integer. I want to pass a valid integer number to the constraint check output. In the constraint

How to query XML as used in .dtsx (SSIS)

◇◆丶佛笑我妖孽 提交于 2021-02-08 03:42:31
问题 I have made an SSIS 2014 package (Project Deployment). Here you see a (relevant) part of it's XML-content: <DTS:Executable DTS:refId="Package\Drop and Create statements voor tabellen\Drop and Create Classes_staging" DTS:CreationName="Microsoft.ExecuteSQLTask" DTS:Description="Execute SQL Task" DTS:DTSID="{60C174A8-D9C0-4F2A-B783-77753552BFCB}" DTS:ExecutableType="Microsoft.ExecuteSQLTask" DTS:LocaleID="-1" DTS:ObjectName="Drop and Create Classes_staging" DTS:TaskContact="Execute SQL Task;

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

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

can ssis pick up the file with the latest date creation?

馋奶兔 提交于 2020-12-13 18:51:35
问题 I am thinking of using ssis reading excel files in the folder. The folder is updated daily by putting new file in without deleting any old files. I am now using a 'for each' container to loop all the files and loading them into a consolidated table. However, the boss only wants the latest file to be loaded into the table and he does not want a incremental table. Can ssis check the file creation date using some functions in ssis and only load the latest one? 回答1: ou can use this script: public

can ssis pick up the file with the latest date creation?

六眼飞鱼酱① 提交于 2020-12-13 18:51:23
问题 I am thinking of using ssis reading excel files in the folder. The folder is updated daily by putting new file in without deleting any old files. I am now using a 'for each' container to loop all the files and loading them into a consolidated table. However, the boss only wants the latest file to be loaded into the table and he does not want a incremental table. Can ssis check the file creation date using some functions in ssis and only load the latest one? 回答1: ou can use this script: public

Why is “Use environment variable” option disabled/grayed out in SSIS2012 catalog configuration?

删除回忆录丶 提交于 2020-12-01 09:30:05
问题 This may sound like an easy question but the answers on the net all point to the basics of setting up an environment and referencing it in the project/package. The scenario that I have encountered was never mentioned anywhere so I thought it would be good to document the behaviour here. Below is the steps to reproduce the problem: 1. Create a new package: Package1.dtsx 2. Create a new (package) parameter: Test, Int32, Required 3. Deploy the project. 4. Goto Integration Services Catalogs and

Start SSIS Package from Script Task “InProcess”

£可爱£侵袭症+ 提交于 2020-08-09 12:00:08
问题 I want to start a child SSIS package from Script Task and do it in scope of main SSIS package execution. Like it is done by SSIS Execute Package Task when you set ExecuteOutOfProcess property equal to false . However, tutorials I have found, starting from Microsoft Docs etc, are creating a new execution. This is equivalent to setting ExecuteOutOfProcess property equal to true . In that case you do not inherit all project configurations, parameters from your current execution instance, and