Quantcast
Channel: SQL Server Integration Services forum
Viewing all 24688 articles
Browse latest View live

Reading files with different format using Foreach loop in SSIS

$
0
0

Hi,

I am reading .txt files using Foreach loop container. I want to read .csv file also using the same container. Is it possible to read both .txt and .csv file using single Foreach loop container or i have to create a separate Foreach loop container?

Thanks




How to find if file exist on FTP server using wildcard in SSIS?

$
0
0

Hi, 

I have a process which pick up a (*.Zip) file from ftp , unzip that file and load to the table.  Sometimes my process failed because it can't find file on ftp site.  I want to first check on ftp site if file exist or no?  if yes then run the process and if not send an email.  How do i assign a variable or some script code which help me to find any zip files on that ftp folder?

Thanks

Chirag


Chirag Dalal

SSIS 2008: Execute Process Task Help...Unzip Files

$
0
0

Scenario:

I have a folder where everyday a ZIP file will be delivered, My SSIS package runs and extracts the file and inserts into a table. This is my first time doing a Execute Process Task so please bear with me.

I`ve done some online research and found a link to what I wanted. See below

https://msbigurukool.wordpress.com/2014/01/11/extracting-a-zip-or-rar-file-using-execute-process-task-in-ssis/

Under my EPT this is what I have

Executable : C:\Program Files\7-Zip\7Z.exe

Arguments: x “S:\Ops\Qut\T_S_H_P_201512011208.txt” -o

WorkingDirectory: C:\Users\fxmodi\Desktop\Qut

When I execute the task it runs but nothing happens.. 

AM I Missing something? Can someone guide me ?


FM

The AcquireConnection method call to the connection manager "Connection Name" failed with error code 0xC0202009.

$
0
0

I am utilizing BIDS on a SQL Server 2008 R2 build; sending data from Excel to Oracle 10g. On my local machine this works without issue as I had saved the password for the connection to Oracle as the package was set to Encrypt Sensitive with User Key.

Once this was working, I moved ahead by creating a configuration file;  change the Protection Level to Don't Save Sensitive; and ensure the package and elements within it are running in 32-bit mode.  The goal is that I will be able to add the password to the xml configuration file (not ideal--I get it).  However when I do this, save the package, and then run within VS I get the error in the subject line?

I have been all over the internet reading a multitude of similar problems with successful answers.  The answers I found did not work for me.  What am I missing?  I fear it is right in front of me and I can't see it.  I thought maybe I needed a TNSNames.ora file but I have one.  I edited the XML and added the password, to no avail. 

I look forward to any help and guidance the members here can provide.

Thank you.


MT

How to deploy to SSIS 2012 from Visual Studio 2015

$
0
0

I have the latest SSDT BI for VS 2015, which clearly states "This release supports SQL Server 2016 through SQL Server 2005, and provides the design environment for adding features that are new in SQL Server 2016."

Is there anything specific I need to do to actually deploy from Visual Studio 2015 + SSDT BI into my SQL Server 2012?

When I try to deploy a package from Visual Studio, I get error:

Could not find stored procedure 'SSISDB.catalog.deploy_packages'. (Microsoft SQL Server, Error: 2812)

When I try from SSMS 2012 to "Import Packages..." my package fails with this message:

The package failed to load due to error 0xC0010014 "One or more error occurred. There should be more specific errors preceding this one that explains the details of the errors. This message is used as a return value from functions that encounter errors.". This occurs when CPackage::LoadFromXML fails.

In the xml report, the error message details say "<Message>Could not find stored procedure 'SSISDB.catalog.deploy_packages'.</Message>"

When I look at my DB Schema, indeed there is no such stored procedure.

So: How can I get my package deployed?

UPDATE: I tried deploying the project. This worked to get the project into MSSQL via Visual Studio 2015 "Deploy" menu item, however the project fails validation with error message: 

Error: Package migration from version 8 to version 6 failed with error 0xC001700A "The version number in the package is not valid. The version number cannot be greater than current version number.".

By the way, all these errors are coming from following the steps in SSIS Tutorial "Lesson 6: Using Parameters with the Project Deployment Model".

Thanks in advance!


SSIS ignoring parameter mapping to variables (SQL 2012 upgrade)

$
0
0

Hi all,

We're upgrading some SSIS packages from SQL Server 2005 to 2012. These packages are called by stored procedures. In 2005, we used dtexec, but are now moving to ssisdb.catalog.start_execution, create_execution, etc.

Our packages have package variables, not parameters, which we could pass values into directly via dtexec. I didn't have any luck getting these to show up in the deployed package or passing in values via set_execution_parameter_value. I looked like I needed to create parameters. 

So I created package parameters, and used the Parameter Mapping screen to map the variables to the parameters in SSDB (Vs 2012). When I deploy to the server, I can see the params. The problem is SSDB is ignoring my parameter mappings an looking at the variable values both in VS and on the server. When I don't set a variable value, I get an error. 

Is there a best way to approach this? Can I pass in variable values directly? Do I need package params? Project Params? Environmental variables? If I'm doing it right, how do I get my package to ignore my variable values and use params?

Thanks. 


Comparing only structure (not data) of two tables in two different databases (in two different servers)

$
0
0

Hi,

I would like to compare only the structure of two tables from two different databases in different servers. Instead of installing any sql compare tool, I would like to do it with script. Can you please advise how to do it ?

XML Task Error 0xC002F304 "Cannot access a closed Stream."

$
0
0

Good day,

We are converting from 2008 R2 SP3 to 2014 and converting our SSIS packages as part of the process.  I have 2 separate packages that are behaving differently even though the XML operator has been configured in the same manner.  My development environment is VS2015 with the SSIS Template overlay from 2013.  In development and on the server, one package processes and one errors on the xml task.

Sequentially, I have a SQL Task that gets and formats the data into XML output; I have verified that query is returning the xml formatted result.  The results are passed into a string variable.  The XML task Input section is set to XSLT, Variable, and the name of my variable.  Output save operation result = True, and the Second Operand section is type File connection and lastly,  the connection name out to the file system.  The connection is set up with a file connection manager type and the path is to the location of the xslt.  The next step in the process is to send an email with the results.

Again, with this setup, one package works and a second package does not.

On the XML task, the error is:  XML Task Error 0xC002F304 "Cannot access a closed Stream."

I have researched this error but have not yet stumbled across a similar situation/error message which will assist.  Since the 2008 version can compile and function, I know it has something to do with the upgrade process.

I would appreciate your input and assistance.


Recommended cleanup of SSISDB ?

$
0
0

Hello,

Is there a way to cleanup the SSISDB.

I find all kind of T SQL script to clean up the database but it's unclear whether they work in my case, version of SQL Server and whatever reason. My database is growing and growing and the properties doesn't seem to have an effect on the size of the database.

So what is the advised way to clean up the SSIS DB in SQL Server 2014 SP1?

Or should i just recreate the SSISDB every 2 months? That would be really great....

Greetz,

Hennie

The permissions granted to user 'NT SERVICE\MSSQLSERVER' are insufficient for performing this operation

$
0
0

Hi,

with regard to tutorial:

http://www.codeproject.com/Articles/27156/How-to-Call-SSIS-Package-from-the-Stored-Procedure

I faced above error message trying to run script attached to the Tutorial. Additionally, script commence to run SSIS package specified in the script but fails, immediately after a few seconds.

Note: SSIS package itself works fine within MS Data Tools...

How to cope with this error?

Thanks

SSIS Lookup Not Matching all records

$
0
0

Hello

I have a SSIS package that compares two sets of data in a SSIS lookup but it is not matching all the records it should.

                            It does matching on 4 fields.

                            BD_LOC_ID - Text Field
                            BD_BANK_DDATE - Date Field
                            BD_BGC_NO - Text Field
                            BD_AMOUNT - Text Field

When I write a query and match the data I get more records come back than the amount of records the SSIS lookup records has matched.

I have trim the text fields, but this made no change.

What can I try next to get better matching in my SSIS package?

Generate , seperated files in SSIS.

$
0
0

Hi Team,

I am working on SSIS project has .dtsx package to create a file. There are around 50 files that I need to generate.

Problem is with the performance of packages. Each package scans some tables (~4/5). Those tables are very common across packages.

Tables are used in almost all OLEDB source connection.

How can I improve performance of all packages? please advice me.


s

dont ssis developers need 64 bit and 32 bit excel running side by side due to debug restrictions?

$
0
0

Hi. I'm getting a little clearer on the difference between TechNet and MSDN and am hoping this question is appropriate for this forum. It seems to have died on the vine in the msdn forum.   Pls let me know where I'm taking a wrong turn or what the solution to my dilemma is.  If this isn't the TechNet forum, my apologies as I've probably now posted the same question twice to msdn.

We run 2014 enterprise.

Basically I'm under the impression that to debug an ssis pkg that uses excel, u have to flip the run as 64 bit option to false.  And that ssis then picks up a 32 bit excel add in that you've added to your pc from a link I could probably find and post here.  In my situation the excel connector that seemed the friendliest was ace... which I believe is related to access.  I believe there were other connector choices but I vaguely remember errors popping up while trying to use them and difficulty in determining why those errors were occurring.  So I settled on the access connector.

I'm also under the  impression that generally a 64 bit version of excel shouldn't be installed on the same pc as a 32 bit version of excel.  In fact, under normal circumastances, the installer catches u and asks if its ok to delete the other.  So wrong or right, I uninstalled office on one of my pc's just so that I could debug ssis that uses excel.  I should add that I see all sorts of hacks to get around this side by side thing but my understanding is that it isn't condoned by MS.

Finally, I should add that at the moment office 365 isn't possible for me and that my understanding is that when ssis runs in production, the 64 bit vs 32 bit dilemma goes away because its not a debug situation.  Can someone shed some light on or all or part of my confusion?


Excel XLSX format as a source

$
0
0

Using the following:

Microsoft SQL Server Standard (64-bit) version 11.0.5058.0

Microsoft Visual Basic 2010 Shell

Microsoft SQL Server Integration Services Designer Version 11.0.5058.0


I am simply trying to import data from a sheet in an excel workbook (XLSX) into an existing SS table.

I set up an excel source and created an Excel Connection manager, and the connection string is this:

Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\vmwd-stsqldb02\c$\temp\NewAccounts.XLSX;Extended Properties="EXCEL 12.0 XML;HDR=YES";

In the Excel Source Editor it will not pull up and of the sheets, it states 'No tables or views could be loaded.'.

I saved the file as an XLS and setup another Excel Connection manager with the following connection string and I am able to select the sheet I want.

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\vmwd-stsqldb02\c$\temp\NewAccounts.xls;Extended Properties="Excel 8.0;HDR=YES";

I have gone to http://www.microsoft.com/en-us/download/details.aspx?id=13255 as some posts have suggested and installed the 64-bit driver.  This did not work.

I am open to any suggestions.

Thanks !




SSIS - How to get the last modified datetime from HTTP file using script task.

$
0
0

Hi All,

I would like to check the last modified datetime for a file from a HTTP site using SSIS 2008 R2. The condition I want to test is whether the date modified of the file is the current date. If it is not current date then I don't want to process SSIS package and so not import the file.  Otherwise if it is the current file i want to import the file. 

Thanks



Passing variable value from child to parent package in SSIS 2012

$
0
0

Hi,

I am using Execute Package Task to run child package from parent package. Child package is capturing some value in a variable and i want to pass the value of this variable to parent package. How can i do this in SSIS 2012.

Thanks

SSIS Deployment Status

$
0
0
Is there a way to query the SSISDB to get the package deployed date and time and whom, and when was Any SSIS package got updated?

Regards JakDBA Please Mark this as Answered if this solves your issue or satisfied with the response.

An attempt has been made to use a data extension that is either not registered for this report server or is not supported in this edition of reporting services.

$
0
0

I am trying to implement Custom Data Extension for the SSRS reports to get data from an assembly code as DataSet and display them.

I am able to fetch data and create DataSet in RDL report but on preview it is displaying the error like mentioned here:-
"An attempt has been made to use a data extension that is either not registered for this report server or is not supported in this edition of Reporting Services."

It seems like some mismatched version used. Let you know my configurations as follows:- Visual Studio 2013 with Data Tools 2014 SQL Server 2014 with MSDTBI tools and BI Services

Tried a lot but not getting any clue which all versions shall i use for VS and reporting services combination to get this Custom Data Extension to work without any issues?

OR Is it anything else i missed which causing this issue?

Any help would be of great help.

What I have tried:

I am able to create DataSet fetching data from new Custom Data Extension.

Only issue is while previewing it.


Common package to import into database

$
0
0

Hello All,

We have similar packages to import excel , word, txt , mdb files into SQL server

Can anyone help me from the scratch to create a common package to import any type of file into database without any extra much work.

Help must appreciated.

Thanks


Dilip Patil..

DERIVED COLUMN +EXPRESSION

$
0
0

(INVOICEDATEID >= 2010070100100) AND
   INVOICEDATEID <= 2011063100100)= = 1) ||
(isnull(SCENARIO, 'Actual') != 'Actual') THEN 0

INVOICEDATEID  IS DECIMAL DATATYPE

HOW TO WRITE EXPRESSION IN DERIVED COLUMN 

Viewing all 24688 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>