ssis

SSIS - Continue Package Flow even after inner task in a Foreach Loop Container fails

可紊 提交于 2020-01-03 10:44:49
问题 In the figure below, why is the Foreach Loop Container failing despite the fail path (of the DFT that failed) being handled correctly? How can I get the loop to continue after handling fail path? If it helps to know what's going on in the package, here's the gist: We have a requirement where data from Excel files must be loaded into a DB. The package we have splits each Excel file into constituent CSV files (one CSV per sheet), and loads the CSVs into the DB. It is possible that some of the

SSIS 2012 date formats dmy vs mdy

半世苍凉 提交于 2020-01-03 08:53:23
问题 There are three SQL Servers: PROD (2008 R2) NEW_TEST (2012) NEW_PROD (2012) I am migrating a large number of SSIS packages from PROD to both NEW_TEST and NEW_PROD servers. Source data comes from flat text files Source DATE data is in the format of dd/mm/yyyy (i.e. 5th of November 2015 is stored as 05/11/2015). In SSIS, the definition of the DATE source column (text file) is Unicode string (DT_WSTR) and the target column (in DB table) data type is DATETIME so a type conversion happens between

SSIS 2012 date formats dmy vs mdy

怎甘沉沦 提交于 2020-01-03 08:53:13
问题 There are three SQL Servers: PROD (2008 R2) NEW_TEST (2012) NEW_PROD (2012) I am migrating a large number of SSIS packages from PROD to both NEW_TEST and NEW_PROD servers. Source data comes from flat text files Source DATE data is in the format of dd/mm/yyyy (i.e. 5th of November 2015 is stored as 05/11/2015). In SSIS, the definition of the DATE source column (text file) is Unicode string (DT_WSTR) and the target column (in DB table) data type is DATETIME so a type conversion happens between

How to write SSIS switch/case expression?

怎甘沉沦 提交于 2020-01-03 08:42:32
问题 This is a SQL Server Integration Services (SSIS) expressions question (I'm pretty new to it). I would like to write a switch/case expression in a Derived Column transform - basically the new column can have 5 different possible values, based on the value of an input column. All I got from Google is the (condition) ? (true value) : (false value) technique, but this only provides for two possible values. Does SSIS expressions have a switch/case type expression? I thought of using sequential

How to write SSIS switch/case expression?

…衆ロ難τιáo~ 提交于 2020-01-03 08:42:06
问题 This is a SQL Server Integration Services (SSIS) expressions question (I'm pretty new to it). I would like to write a switch/case expression in a Derived Column transform - basically the new column can have 5 different possible values, based on the value of an input column. All I got from Google is the (condition) ? (true value) : (false value) technique, but this only provides for two possible values. Does SSIS expressions have a switch/case type expression? I thought of using sequential

DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER error

落爺英雄遲暮 提交于 2020-01-03 08:26:13
问题 My package consists of dynamic db connections. When i run my package it is throwing error like DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.The AcquireConnection method call to the connection manager "conn" failed with error code 0xC0202009. I tried setting delay validation property to true at package level. I tried to change Package Protection Level property to EncryptSensitiveWithpassword. Still am facing with same error. Am able to run the package manually. How to get rid of this.

SSIS Script Component Cannot Load Assembly Until Manually Opened

僤鯓⒐⒋嵵緔 提交于 2020-01-03 06:50:09
问题 I am creating a SSIS project via Biml (Using the current version of BimlExpress per the Varigence BimlExpress page) that uses a script component within a Data Flow Task. The project is created without issue however errors when it gets to the Script Component: Could not load file or assembly 'Microsoft.SqlServer.DTSPipelineWrap, Version=14.100.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified. at ScriptMain.PreExecute()

How to use SSIS API to read a package and determine task sequence from code (PrecedenceConstraints)

一曲冷凌霜 提交于 2020-01-03 05:31:17
问题 I am writing aprogram which uses the Microsoft.SqlServer.Dts.Runtime library to load a package from XML. Currently, I am extracting all of the connections and tasks but I am not currently capturing the precedence sequence. I used the following short debug snippet to dance around the objects and properties that looked like they contained this information public void Scan(string tempPath) { XmlDocument packageXml = new XmlDocument(); packageXml.Load(tempPath); IDTSEvents events = new

Convert varchar to datetime using VB script

余生长醉 提交于 2020-01-03 04:38:06
问题 I need to convert a date field which is in varchar format (DDMMYYYY) to DateTime using .Net. I have tried a number of solutions but all in vain. My source for that field is a flat file and my destination is a table. I am using the script in SSIS package. Below is the sample: The column SampleDate is in the ddmmyyyy format. I am converting it to MM/dd/YYYY in order to convert it to datetime format. Dim retString1 As String Dim slash As Char = ChrW(&H2F) retString1 = Row.SampleDate.Substring(2,

Understanding the “Full Result Set” of SSIS

本小妞迷上赌 提交于 2020-01-03 04:29:05
问题 I have two questions about the result set generated by an execute SQL task - 1) What is the class of the object where the result set is stored ? Is it ADODB recordset ? 2) Whatever object it is, how does one iterate that object. I want to simply iterate it an print it in grid form, just like it would appear in SQL server management studio. I want to do this WITHOUT putting it into a DataTable object or something like that. That would be a waste of memory and time. Can someone show me how to