ssis

SSIS ragged file not recognized CRLF

谁说胖子不能爱 提交于 2020-01-09 08:00:59
问题 In SSIS, I try to load data from a flat file. The flat file have fixed width columns, but some column are not present in a row (a column can have a CRLF, which must be a new line) like this a b c the first rowok<CRLF> iu jjrjdd<CRLF> this is a newline<CRLF> How I can have exactly the same number of line and exact data in my output? I setup a flat file connection, of ragged right type. In this sample, row 1 is correctly retrieve, but for row 2, it didn't recognize CRLF, and put in b column all

How to transaction rollback in ssis?

爱⌒轻易说出口 提交于 2020-01-09 05:20:08
问题 I have data import to Production server. In my package cleanse raw tables before data load. If any case package failed . How to rollback raw tables data in SSIS ? 回答1: By using Sequence Containers (Sequence, For Loop, ForEach Loop) in SSIS, you can make use of a property called TransactionOption . This allows you to specify the transactional behaviour of the tasks in your package, and the package itself to rollback if any tasks fail. For example, if you stick your tasks in a Sequence

Extracting excel files with SSIS

与世无争的帅哥 提交于 2020-01-07 09:25:13
问题 i am trying to create a ForEachLoop container that extracts excel files within a source folder. i have created an execute sql task within a ForEachLoop container that stores my excel files full paths in an sql server table and now i can't figure how to make it go through that list and extract each file into an ole db destination table ps: the excel files have different types of data, columns change almost from one file to another (28 files) can you please help me ? thank you in advance. 回答1:

Call SSIS Package on 2008 server from SQL Agent Job on remote 2005 server

六月ゝ 毕业季﹏ 提交于 2020-01-07 09:03:23
问题 I'm trying, unsuccessfully, to remotely execute an SSIS package. The package resides on a SQL Server 2008 instance and I'd like to call it from a Job on a 2005 server. The error I'm getting is: The package could not be loaded. The step failed. If I go from 2008 to 2008, there is no error. Any ideas? 回答1: Assuming that you're attempting to execute the package with a dtexec command, the issue is that the package is executed on the calling server, not the server where it is stored. Since the

SSIS ForEach Loop behaviour

做~自己de王妃 提交于 2020-01-07 06:55:49
问题 This is typical ForEach container behaviour: However, if I do whats shown in the image below, the Execute SQL task never executes, how can i do this behaviour? I do not have to use ForEach container if some other type of container will allow me to do this. The for each loop essentially loops through files in multiple subdirectories in a folder. Based on which folder the loop is in, it populates a variable. this variable is used in the connectors from "some script" task to "task a" and "task b

Updating records in MYSQL with SSIS

偶尔善良 提交于 2020-01-07 05:35:19
问题 I am writing an SSIS package that has a conditional split from a SQL Server source that splits records to either be updated or inserted into a MYSQL database. The SQL Server connection has provider .NET Provider for OldDB\SQL Server Native Client 10.0. The MYSQL connection is a MYSQL ODBC 5.1 ADO.NET connection. I was thinking about using the OLE DB Command branching off of the conditional split to update records but I connect use this and connect to the MYSQL database. Does anyone know how

how to execute multiple ssis packages from c#

浪尽此生 提交于 2020-01-07 05:25:08
问题 I have created 10 different packages and i want to execute them from c# coding. Can some one post some screen shots to achieve this. I have tried this Application app = new Application(); TraceService("loading system From File system"); //Create package Container to hold the package. //And Load the Package Using the Application Object. Package package = app.LoadPackage(@"C:\User\Kiran\Documents\Visual Studio 2012\Projects\WindowsServiceTest\WindowsServiceTest\Package1.dtsx", null);

Microsft SQL Server Data Tools for Visual Studio 2015 giving debugging error

匆匆过客 提交于 2020-01-07 03:59:17
问题 I have created small SSIS project in SQL Server Data Tools for Visual Studio 2015. While debugging the project I am getting below error. Unable To Start debugging. The Debugger is not properly installed Run setup to install or repair the debugger. (Microsoft.DataTransformationServices.VsIntegration). 来源: https://stackoverflow.com/questions/44447230/microsft-sql-server-data-tools-for-visual-studio-2015-giving-debugging-error

ERROR: To run a SSIS package outside of SQL Server Data Tools you must install Standard Edition (64-bit) of Integration Services or higher

喜夏-厌秋 提交于 2020-01-07 03:38:27
问题 I have VS2015 Community and SQL Server 2016 Developer installed. Using the MSFT link, I've ensured to download the latest version of SSDT, which appears to install without error (though, Integration Services do not show in the SQL Configuration Manager). Using previously validated projects that creates and executes SSIS packages, I cannot get the same code to work with the current setup. The error showing when I debug: Component: SSIS.Pipeline Error: To run a SSIS package outside of SQL

How to remove columns from CDC (in SQL Server)

大憨熊 提交于 2020-01-06 19:31:18
问题 I've enabled CDC on a table, using the code below, and by default it includes all of the columns. There is another way to enable CDC on a table while SPECIFYING the columns (code is given below). However, for me, that's too late - given my CDC was already created and includes ALL of the columns. How do I remove the columns I don't want from the CDC watch list (I searched everywhere in the meta data and couldn't find anything): -- The following enabled the CDC on a table: EXECUTE sys.sp_cdc