ssis-2012

Get list of all databases that have a view named 'foo' in them

我的未来我决定 提交于 2019-12-24 08:54:51
问题 I have a few servers that have a bunch of databases in them. Some of the databases have a view called vw_mydata. What I want to do is create a list of all databases containing a view named vw_mydata and then execute that view and store it's contents in a table that then contains al the data from all the vw_mydata. I know I can find all the databases containing that view using sp_msforeachdb 'select "?" AS dbName from [?].sys.views where name like ''vw_mydata''' But then I have as many

How to concatenate 2 files in SSIS (Integration Services)?

折月煮酒 提交于 2019-12-24 05:12:38
问题 I have 2 files that do not have the same columns. I want to be able to concatenate them, but I can't seem to find a way to do this. I thought about using a Script Component, but that still wants you to declare output columns. The first file has columns and data like this: A|B|C|D|E|F|G Adata1|Bdata1|Cdata1|Ddata1|Edata1|Fdata1|Gdata1 Adata2|Bdata2|Cdata2|Ddata2|Edata2|Fdata2|Gdata2 Adata3|Bdata3|Cdata3|Ddata3|Edata3|Fdata3|Gdata3 Adata4|Bdata4|Cdata4|Ddata4|Edata4|Fdata4|Gdata4 The second

Transform DT_TEXT in SSIS 2012 for Oracle CLOB

会有一股神秘感。 提交于 2019-12-24 00:26:32
问题 I am using SSIS 2012. I have a script component with an output column of type DT_TEXT. (It is XML from a web page.) I have an OLE DB Destination using the Native OLD DB\Oracle Provider for OLE DB, and the table for that field is defined as a CLOB. This question seems similar: SSIS Script Component won't allow text Stream Output. And this seems to give an answer: http://www.rad.pasfu.com/index.php?/archives/35-How-to-Fill-NTEXT-Column-from-Script-Component-SSIS.html Within the Script Component

SSIS DB2-> SQL Server data migration issue (Timestamp -> DateTime2)

﹥>﹥吖頭↗ 提交于 2019-12-23 21:18:35
问题 we are trying to transfer data from DB2 -> SQL Server 2014 database. When using SSIS to transfer data between tables, the timestamp -> datetime2 is failing due to data type mismatch. Found couple of links related to that, but not sure if they have the source db2 Timestamp column data converted to string format before applying those conversions or data is coming in as Timestamp type and those conversions could still work? please share how to handle this Timestamp -> Datetime2 mismatch in SSIS.

How to get desired output in SSIS by grouping by and count?

好久不见. 提交于 2019-12-23 20:16:21
问题 I'm creating an SSIS package wherein a user needs to be notified if there is a duplicate productcode for one productlabel. We retrieve the products thru a csv flat file being sent to us in a shared location. In this example I have Productcode = 1a for both productlabel Physio Ormix and Nixen. So basically the productcode = 1a was a duplicate because it was also used by the productlabel=Nixen. Hence, notify users for the duplicate ProductCode and Productlabel used. I tried creating an

Read SSIS Package File Name From Within Package (Package Deployment)

馋奶兔 提交于 2019-12-23 13:06:12
问题 I created a SSIS Package in Visual Studio SSDT 2012, using Package Deployment model. Is there any way to get access to the package's file name as a readonly variable or property from within the package? I don't see it listed as a system variable, is there any way maybe through the script task? 回答1: I think you need to check System variables in the name of [System::PackageName], if you want to rename the package name,then you have to change the Properties. I've attached screenshots for your

Handling files with different structure For each Loop SSIS

二次信任 提交于 2019-12-22 16:43:08
问题 There are 3 files in a directory and two of them are with same structure and the 3rd one has 3 more extra column in the end of the file. file 1: columna,....,columnz file 2: columna,....,columnz file 3: columna,....,columnz,Column1,Column2,column3 Is it possible to import all these files using a single connection with in a for each loop container? If the flat file connection connection is based on the file 3 . 回答1: No this is not possible in SSIS. Using a Flat File Connection designed for

Handling files with different structure For each Loop SSIS

泄露秘密 提交于 2019-12-22 16:42:05
问题 There are 3 files in a directory and two of them are with same structure and the 3rd one has 3 more extra column in the end of the file. file 1: columna,....,columnz file 2: columna,....,columnz file 3: columna,....,columnz,Column1,Column2,column3 Is it possible to import all these files using a single connection with in a for each loop container? If the flat file connection connection is based on the file 3 . 回答1: No this is not possible in SSIS. Using a Flat File Connection designed for

Start VPN from SSIS package?

霸气de小男生 提交于 2019-12-22 12:18:34
问题 Using SSIS I need to retrieve data from a server outside my network/domain. I can only get to this server through a VPN. I created 2 packages: StartVPN - using some VB this package starts the VPN. Works great. :) Import Files - This package is called from StartVPN and should import some data. When I run package 2 directly with the VPN already started this package runs great. When I run package 2 from package 1 without the task that starts the VPN but with the VPN manually started this package

SSIS SFTP : How to resolve “Unable to Upload: Socket read operation has timed out”?

ぐ巨炮叔叔 提交于 2019-12-22 10:45:16
问题 Using the SSIS SFTP Extension and configured everything correctly. However, I'm getting the following error any time I execute the SFTP task: Error: Error: Unable to Upload: Socket read operation has timed out at SSIS.Extensions.SFTP.SFTPConnection.ThrowException(String Message, Exception ex) at SSIS.Extensions.SFTP.SFTPConnection.UploadFiles(List`1 fileList) at SSIS.Extensions.SFTPTask.SFTPTask.Execute(Connections connections, VariableDispenser variableDispenser, IDTSComponentEvents