ssis-2012

SSIS : Creating a flat file with different row formats

寵の児 提交于 2019-12-02 01:56:57
问题 I want to create a flat file output, where format of rows is different. file has header, middle data rows, footer row. file will look Like below H|deptcode123|deptNameXYZ|totalemp300 E|Sam|Johnson|address1|empCode1|........many other columns E|Sam2|Johnson2|address2|empCode2|........many other columns E|Sam4|Johnson3|address3|empCode3|........many other columns E|Sam5|Johnson4|address4|empCode4|........many other columns J|300|250000 How can I generate this file in SSIS. Input will come from

Assigning value from single row result set in ssis giving error in SSIS 2012

狂风中的少年 提交于 2019-12-02 00:43:44
I am trying to get CSV IDs from a table from sql server and assign the result to a variable. below is the sql I have put inside the Execute SQL Task set nocount on declare @csv varchar(max) = '' select @csv = @csv + cast(companyid as varchar(10)) + ',' from company where isprocessed = 0 select substring(@csv,1,len(@csv) - 1) as companyids As you can see its a simple and standard way of getting csv of a field in t-sql. It works perfectly in query window but throwing below error when I run the Task in SSIS 2012 [Execute SQL Task] Error: The value type (__ComObject) can only be converted to

Dynamic table create and load data in ssis

安稳与你 提交于 2019-12-01 14:44:07
I have small doubt in ssis, text file have location data based on location need to create table dynamicaly in sql server and load related location data using ssis package, source text file have sample data like below id | name | location 1 | abc |Hyd 2 | banu |chen 3 | jai |bang 4 | hari |Hyd 5 |nani |Hyd 6 | banti |bang 7 |kali |chen based on this text file load we need to create location tables dynamically and load related data.because of some time may have more location in text file that situation we need to create table dynamically and load it.please tell me how to achive this task using

The implementation of Transaction with out msdtc in the design pattern

那年仲夏 提交于 2019-12-01 14:14:02
The transaction has implemented as shows below.When executed it says there is no begin transaction and the whole package exe has been roll backed. How to get this work with out changing the structure After the execution Ferdipux For this transaction setup to work with Microsoft DBMS - you have to specify RetainSameConnection=true in Connection Manager properties. More details on this approach with screenshots . 来源: https://stackoverflow.com/questions/37702336/the-implementation-of-transaction-with-out-msdtc-in-the-design-pattern

The implementation of Transaction with out msdtc in the design pattern

孤人 提交于 2019-12-01 12:40:32
问题 The transaction has implemented as shows below.When executed it says there is no begin transaction and the whole package exe has been roll backed. How to get this work with out changing the structure After the execution 回答1: For this transaction setup to work with Microsoft DBMS - you have to specify RetainSameConnection=true in Connection Manager properties. More details on this approach with screenshots. 来源: https://stackoverflow.com/questions/37702336/the-implementation-of-transaction-with

Is there a better way to parse [Integer].[Integer] style dates in SSIS?

元气小坏坏 提交于 2019-12-01 10:46:16
I'm working on an SSIS ELT script that needs to parse dates from a TSV file that are stored in the format [INTEGER].[INTEGER] ( Excel integer dates followed by second since midnight, e.g., 42825.94097; or microseconds since midnight, e.g., 42831.1229166667). I've come up with the following approach: Derived Column function to split the input into a date part and a time part Derived Column function to append the parsed dates together, e.g., DATEADD("day",StartTime_Date,DATEADD("second",StartTime_Time,(DT_DATE)"1/1/1900")) Is there a more elegant way to do this without resorting to a Script

Is there a better way to parse [Integer].[Integer] style dates in SSIS?

て烟熏妆下的殇ゞ 提交于 2019-12-01 08:01:54
问题 I'm working on an SSIS ELT script that needs to parse dates from a TSV file that are stored in the format [INTEGER].[INTEGER] (Excel integer dates followed by second since midnight, e.g., 42825.94097; or microseconds since midnight, e.g., 42831.1229166667). I've come up with the following approach: Derived Column function to split the input into a date part and a time part Derived Column function to append the parsed dates together, e.g., DATEADD("day",StartTime_Date,DATEADD("second"

Fill SQL database from a CSV File

人走茶凉 提交于 2019-12-01 03:06:59
I need to create a database using a CSV file with SSIS. The CSV file includes four columns: I need to use the information of that table to populate the three tables I created in SQL below. I have realized that what I need is to use one column of the Employee Table, EmployeeNumber , and Group Table, GroupID , to populate the EmployeeGroup table. For that, I thought that a Join Merge table is what I needed, but I created the Data Flow Task in SSIS, and the results are the same, no data displayed. The middle table is the one used to relate the other tables. I created the package in SSIS and the

If there is an error, how can I exit from SSIS package

萝らか妹 提交于 2019-12-01 00:28:40
I have a SSIS package that has a Sequence Container with serveral Data Flow Tasks in it. If any Data Flow in the Sequence Container incurs an error, I want the package to exit running rather than hanging out there. How can I make it happen? Thank you so much! Make sure that your steps and containers all have MaximumErrorCount setting to at least 1. 来源: https://stackoverflow.com/questions/35297351/if-there-is-an-error-how-can-i-exit-from-ssis-package

If there is an error, how can I exit from SSIS package

那年仲夏 提交于 2019-11-30 19:11:44
问题 I have a SSIS package that has a Sequence Container with serveral Data Flow Tasks in it. If any Data Flow in the Sequence Container incurs an error, I want the package to exit running rather than hanging out there. How can I make it happen? Thank you so much! 回答1: Make sure that your steps and containers all have MaximumErrorCount setting to at least 1. 来源: https://stackoverflow.com/questions/35297351/if-there-is-an-error-how-can-i-exit-from-ssis-package