ssis

SSIS - Is there a Data Flow Source component that will handle CSV files where the column order may change?

Deadly 提交于 2020-01-15 09:53:22
问题 We have written a number of SSIS packages that import data from CSV files using the Flat File Source. It now seems that after these packages are deployed into production, the providers of these files may deliver files where the column order of the files changes (Don't ask!). Currently if this happens, our packages will fail. For example, an additional column is inserted at the beginning of each row. In this case, the flat file source continues to use the existing column order, which obviously

SSIS using Script task - Convert XLS to CSV

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-15 09:32:49
问题 I am using C# script task component to convert XLS to CSV file , my entry point is set to ScriptMain But I am constantly getting error "Error: Cannot execute script because the script entry point is invalid." /* Microsoft SQL Server Integration Services Script Task Write scripts using Microsoft Visual C# 2008. The ScriptMain is the entry point class of the script. */ using System; using System.Collections.Generic; using System.Text; using System.Data; using System.IO; using System.Data.OleDb;

Trying to loop through, and delete from, a list of tables using SSIS

China☆狼群 提交于 2020-01-15 08:57:27
问题 I am currently working on establishing an archive and purge process for our database. I inherited this task from an employee who left a few days ago - he'd been working on it (infrequently) for the past several months so I've had to spend quite awhile retracing his steps so to speak and trying to figure out how he had this all set up. We are using a scheduled task to perform our archiving process and I have that part mostly ready to deploy. However, we're using an SSIS package to handle the

SSIS Converting Percent to Decimal

自古美人都是妖i 提交于 2020-01-15 08:17:13
问题 I'm trying to get a percentage to display as a decimal in my database. I have the following set up to convert the percentage columns into decimals: ---------------- ---------------- ------------ excel source ---------> data conversion ----------> db output ---------------- ---------------- ------------ I've tried to strictly convert the input to decimal and numeric. Neither of these have changed my results. In my columns in the database I'm getting just 0's and 1's. Forgive my crude drawing;

SSIS Converting Percent to Decimal

大城市里の小女人 提交于 2020-01-15 08:17:11
问题 I'm trying to get a percentage to display as a decimal in my database. I have the following set up to convert the percentage columns into decimals: ---------------- ---------------- ------------ excel source ---------> data conversion ----------> db output ---------------- ---------------- ------------ I've tried to strictly convert the input to decimal and numeric. Neither of these have changed my results. In my columns in the database I'm getting just 0's and 1's. Forgive my crude drawing;

Oracle query as source in SSIS defines wrong data types

梦想的初衷 提交于 2020-01-15 08:11:33
问题 I have a somewhat complex query that I want to use as a source in an SSIS package. I create my OLE DB Source, specify the access mode as SQL, and paste my query in the command textbox. When I click Preview, sample data comes back and everything looks good. However, when I try to run the package I get back "external columns are out of sync with data source columns" and a mess of "external column 'xxx' needs to be removed from the external columns" error messages. Note that in design mode there

Oracle query as source in SSIS defines wrong data types

微笑、不失礼 提交于 2020-01-15 08:11:11
问题 I have a somewhat complex query that I want to use as a source in an SSIS package. I create my OLE DB Source, specify the access mode as SQL, and paste my query in the command textbox. When I click Preview, sample data comes back and everything looks good. However, when I try to run the package I get back "external columns are out of sync with data source columns" and a mess of "external column 'xxx' needs to be removed from the external columns" error messages. Note that in design mode there

Dynamic Columns - SQL Server - Months as Columns

时光总嘲笑我的痴心妄想 提交于 2020-01-15 08:00:14
问题 DB: SQL Server 2005 We have a table that has data in this manner: Project Year Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec -------------------- ----------- --------------------- --------------------- --------------------- --------------------- --------------------- --------------------- --------------------- --------------------- --------------------- --------------------- --------------------- --------------------- 11-11079 2008 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

Whats are the advantages/disadvantages of different package configuration in ssis

左心房为你撑大大i 提交于 2020-01-15 07:21:43
问题 Can you please explain the advantages/disadvantages of various configurations (xml, environment variable etc) in SSIS packages? 回答1: You can get your own conclusions here But according to my point of view: On "SQL Server" you have a central database table where configuration entries can be stored and shared across servers and packages. BUT, you need a way to to tell your package which Server connect to get the configurations. "XML File and Environment Variable" are machine dependent, so if

Run SSIS Package with 2 Different Configurations

时光毁灭记忆、已成空白 提交于 2020-01-15 07:10:26
问题 We have a SSIS job called ExportData and it accepts the 'ExportType' Parameter. The ExportType parameter can be 'schedule' or 'unschedule'. I created the Variable called '@ExportType' and created the SSIS Configuration and expose the variable in the Configuration file and called it 'ScheduleConfig'. I copied that file and change the value to 'unschedule' and called it 'UnscheduleConfig'. I created the SSIS Job in the SQL Server 2008 and set up 2 steps for both 'Schedule' and 'Unschedule'. I