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

Avoiding to import entire sheet.

$
0
0

Hi experts,

 

Quick doubt, I need to do the next:

 

-get an excel file.

-use only one column (id column) in sql and do a join to a obtain a 2<sup>nd</sup> column.

-append that column to the original excel

 

Is there any way I can do that without importing the entire excel sheet? I can do the join by just importing the one column but, not sure how to append it without importing all the excel sheet…


Ssis Azure blob download task only downlaod one file and the rest are 0KB

$
0
0

Hello,

i am fairly new at using ssis so i don't really how to deal with this problem.

i have a blob storage account containing files with different sizes. I wish to use the Azure blob download the files on my local computer but here is what happens. 

i use a pattern to search my files(ex : file*.txt), if their is only zero or one match, the task ends well with the success status.

But if there is more than one, the first file on the list is properly downloaded but the rest of the files are created with a size of 0KB each and the doesnn't stop.

On the output window i can read package "mypackage.dtsx" finished : Canceled

Does you have any idea of what is happening?

Thanks in advance.

SQL 2016 Tabular Model processing fails when running from Integration Services package

$
0
0

When I run a SSIS package to do a full processing of a SQL 2016 Tabular Model deployed on SQL 2016 with compatability set to 1200, it fails and gives me the following error:

"[Analysis Services Execute DDL Task] Error: This command cannot be executed on database 'TabularDatabaseName' because it has been defined with StorageEngineUsed set to TabularMetadata. For databases in this mode, you must use Tabular APIs to administer the database."

How do I change the StorageEngineUsed to the Tabular API's so that the I can process it correctly?

When manually processing this model within SSAS, it works 100% correctly.

For Each Loop SSIS tasks for dynamic SQL

$
0
0

Hi all,

I want to apply some ALTER dynamically to some tables in SQL according values in another SQL table.

I’ve thought do it by using For Each Loop task with a couple of Execute SQL Task.

I don’t know how to use in every iterator all the variables that I need for perform the ALTER

First task.

  SELECT COLUMNNAME,TABLENAME,TYPEENCRYPTION

  FROM [dbo].[DataObfuscationReferences]

In this first task, as per my understanding, Foreach ADO Enumerator as Enumerator and then in Variable Mappings I’ve defined every variable:

Second task.

Once the values have been catched, they wil be used for the next Execute SQL Task.

T-SQL example:

ALTERTABLE dbo.SampleMask2016ALTERCOLUMN Lastname 

ADDMASKEDWITH (FUNCTION='partial(2, "XXXXXXXX", 1)')

Almost everything is dynamic, how can I use them in this task?

ALTERTABLE ??????ALTERCOLUMN ???????? 

ADDMASKEDWITH ???????????????????????????????????

Thanks in advance for your help,


how to disable data masking in SQL Server 2016?

$
0
0

Hi, I am unable to get some link where be explained how to disable...

ALTER TABLE dbo.SampleMask2016 ALTER COLUMN NAME
ADD MASKED WITH (FUNCTION = 'partial(2, "XXXXXXXX", 1)')


 [NAME] [nvarchar](100) MASKED WITH (FUNCTION = 'partial(2, "XXXXXXXX", 1)') NOT NULL,


Thanks indeed for your help!

Calling ssrs report in SSIS package...

$
0
0

H,

I am new to SSIS.

I have a report in reporting services. I wanted to call the that ssrs report in ssis packages. so that if the report fails then it will notify users by email.

What task do i need to include to call the report and then do email subscription in ssis.

Any help is appreciated,

Thanks,Punia.

Merge Join in SSIS package

$
0
0

I have 2 sorted data sets in my package , DataSet A and DataSet B, I want a merged Output with all rows from DatasetA and only rows from DataSet B thatdoesn’t match with dataset A. How can i do this, any ideas?

Why use SSIS if you can use BCP?

$
0
0

Hi experts,

 

quick questions…

 

I am  having many issues with the drivers to automate an import of excel sheet… But now I realized I can convert the file to csv and use BCP.

 

I don’t get it now… Why would someone try to import an excel sheet if it can be converted to csv and use BCP


Visual Studio hanging with large XML file

$
0
0

Hi all

I'm trying to build an SSIS job to import certain data from a large XML file but having a bit of trouble.  I've set up a data flow task and added an XML source pointing to the file and applied the XSD supplied with the XML file.  The file is about 2GB in size and has tens of "outputs" as VS terms it.  This sets up fine but whenever I try to add a following task (e.g. a sort task or an OLE DB destination) and connect the XML source to it visual studio just freezes up.  

There is no error message and it windows doesn't mark it as not responding, but it sits there at 25% CPU usage not responding to any input.  I've left it for 10 minutes or more but nothing happens.   I've tried setting "validate external metadata" to false on the XML Source but this doesn't help.  Does anyone have any ideas please?  I'm using Visual Studio 2008 (we are on SQL Server 2008R2).

Thanks


File watcher task failure.

$
0
0

I am using visual studio 2015 and i have sql server 2014. So i downloaded file watcher sql server 2014 from http://www.sqlis.com/sqlis/post/File-Watcher-Task.aspx.

once i downloaded and installed it was not showing up in my toolbox i tried refreshing it but still not showing up. So, i downloaded 2016 file watcher then it showed up on my VS 2015 and package ran successfully but the problem here is, it was failing when i scheduled a job in SSMS 2014 as it is 2014 and file watcher was 2016. I can upgrade my ssms to 2016 as all my projects are using it.

Please reply to this post if you have any solution.

Thanks in advance.

Below is the error


Error:

Message
Executed as user: ----\svc-mssqld. Microsoft (R) SQL Server Execute Package Utility  Version 12.0.4100.1 for 64-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  12:13:17 PM  Error: 2016-08-09 12:13:17.62    Code: 0xC0010018     Source: File Watcher Task      Description: Failed to load task "File Watcher Task", type "". The contact information for this task is "File Watcher Task; Konesans Ltd; Copyright ? 2016 Konesans Ltd; http://www.konesans.com".  End Error  Error: 2016-08-09 12:13:17.62     Code: 0xC0010018     Source: File Watcher Task 1      Description: Failed to load task "File Watcher Task 1", type "". The contact information for this task is "File Watcher Task; Konesans Ltd; Copyright ? 2016 Konesans Ltd; http://www.konesans.com".  End Error  Error: 2016-08-09 12:13:17.63     Code: 0xC0010026     Source: File Watcher Task      Description: The task has failed to load. The contact information for this task is "File Watcher Task; Konesans Ltd; Copyright ? 2016 Konesans Ltd; http://www.konesans.com".  End Error  Error: 2016-08-09 12:13:17.63     Code: 0xC0024107     Source: File Watcher Task      Description: There were errors during task validation.  End Error  Error: 2016-08-09 12:13:17.63     Code: 0xC0010025    Source: FileWatcher      Description: The package cannot execute because it contains tasks that failed to load.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  12:13:17 PM  Finished: 12:13:17 PM  Elapsed:  0.156 seconds.  The package execution failed.  The step failed.

SSIS - Issues with permission while sending email by adding attachments

$
0
0

Hello

I have SQL Job being executed through 'SQL Server Agent'. This SQL job executes one SSIS package. SQL version  is 2012 and OS is windows 2008( SSIS is also 2012 :)). Under one task, email is being sent by attaching a file from a particular location on database server. We have given correct permission to the folder on database server but job fails with the reason that permission are not there to read the file.

If I execute the same job from my system, the code works. File is attached and email is sent without any issues.

SQL server is running on service account with correct permissions. SQL Job is being executed using a proxy account with correct permissions. Folders on server also have the correct permissions.

The same job is working on old database server( OS - Windows 2003 and SQL is 2008).

best regards,

S@P

globally preventing authentication of data connections when simply opening an SSIS package

$
0
0

We use SSIS mainly to extract data from an oracle DB and import into our data warehouse which is in SQL Server. We use an Oracle DB connection in each SSIS package.   Recently, we needed to change the password on the account we use to connect to the Oracle DB with. This account is also used in a purchased web application that sits on top of the Oracle DB. If that account gets locked, no one has access to the DB...

hence the problem...

I opened an SSIS package that does a bunch of things and uses the Oracle connection in several spots. It immediately tried to validate those connections and failed each time because the Oracle account password had changed. Unfortunately, this account is configured such that once three unsuccessful login attempts have been made, the account being accessed is locked out - which is exactly what happened - and we started getting helpdesk calls. No one could access anything in this application all of a sudden!

I did some research and could not find a global SSIS setting to turn this off BUT I did find a way to edit each .dtsx using notepad and do a global search and replace on DelayValidation">0< and replace with DelayValidation">1< which changes the "DelayValidation" setting to TRUE instead of the default of FALSE. I then saved the package and it seems to work. THe problem is we have lots of backed up SSIS packages - from each time we have made changes and if I or someone else happens to forget to do this global change before opening it, that Oracle account will get locked out again and the helpdesk will get very busy!!

Does anyone know of a way to set that globally in SSIS somewhere so that you do NOT need to do this global search and replace each time you open an older package that may have the incorrect password?? I worry because my memory sure isn't what it used to be and if one is in a hurry to correct an issue,  I know I could easily forget to do this before it's too late!!!

Thanks, Brad 


Brad Pears IT Services True North Log Homes Bracebridge, Ont. Canada

Download Multiple CSV files from different url using script component

$
0
0

Hi 

Can you please guide me how to download multiple files hosted on different url's. I need to assign different names of files in Destination folder. 

I am not much into Scripting, so any help would be high appreciated.

Thanks

Raj

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

$
0
0

I have deployed my packages into Sql Server and I am using Configuration File. As my Data Source is Excel, I have changed the connection string during deployment with Server Path. But I am getting the following errors. Actually the File Exist in Path. May I know What is cause of the issue? Do I need to give any permission to execute the package.

 

SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed. 

 

component "Excel Source Service Contract Upload" (1) failed validation and returned error code 0xC020801C. 

One or more component failed validation. 

 

There were errors during task validation. 

DTS_E_OLEDBERROR, Error Code: 0x80004005 Source: "MS JET DB Engine" Description : Path is not valid


 

how can I run different configurations for the same SSIS packages?

$
0
0

Hi there,

My aim is to feed with different configurations one of my SSIS packages scheduled for an Agent job.

How can I achieve this customization without to be modify every time my .dtsx or without using different Agent jobs per each configuration?

My package uses database, server, log, path, etc into user variables.

And the most important thing, in order to take advantatge of that where my .DTSX package must be (the server since I want to schedule does not have SSIS so I can't choose SSIS Package Store) File System, SSIS catalog??

Thanks for share your knowledge and comments!!


Read and write SFTP

$
0
0

Hi there,

I have two tasks in my package that access a SFTP.

Get the files in an input folder, copy the files to a local folder and then move the files in the SFTP to an archive folder.

If I execute it in Visual Studio it works, if I Deploy it to SQL Server and create a Task using the SQL Server Agent it doesn't work.

What I have is:

GetFiles. txt

#option batch on
#option confirm off
open CGI@94.46.13.32
cd /Input
#option transfer ascii
get *.txt \\fslis01\Dados_SSIS\CGI\Input\
#close
exit

MoveFiles.txt

option batch on
option confirm off
open CGI@94.46.13.32
cd /Input
option transfer ascii
mv *.txt ./Archive/
close
exit

In the task:

1. Execute Get Files

Executable: C:\Program Files (x86)\WinSCP\WinSCP.com

Arguments: -script=\\fslis01\Dados_SSIS\CGI\GetFiles.txt

2. Execute Move Files

Executable: C:\Program Files (x86)\WinSCP\WinSCP.com

Arguments: -script=\\fslis01\Dados_SSIS\CGI\MoveFiles.txt

Please can you help solve this issue. Making possible to have it run in SQL Server Agent?

Thanks in advanced,

Ana



Decrypt JSON using SSIS

$
0
0

Hi All 

I have a scenario where i have to connect to amazon web services and grab the JSON file and Decrypt it and load to SQL Server table.

Can you please help me how to connect amazon web services and unzip the JSON to my local folder.

Thanks,

 

Mrs. Katheen Manuel

$
0
0

A e-mail attachment has been de activated by you. I need this attachment, can you remove the de activation?

Execute the only specific DFT whose key cloumn match with column of staging table.- SSIS

$
0
0
i am implementing SCD -2 for 30 distinct customer. each having different customerID

having 2 table one act like staging and other act like Datawarehouse.

after data load to warehouse i am doing increamental load to load data to datamart for each customer


Real Problem:-

how can i design data flow so only specific DFT will execute and move data
from DWH to data mart
whose key column match with the staging table.

For Eg:-

for all 30 customer i have created 30 different DFT Task. because logics to pull data are different
for each customer.

and i want to execute the only specific DFT whose keycloumn id match with ID present in
column of staging table.


i am not sure whether it is possible in SSIS. Thanks a lot for your kind help and suggestion.

Integration Services DLL Issue - SSIS 2012 & SSIS 2008 R2

$
0
0

I have setup Integration services in one of my windows clustered environment. This was earlier hosting SSIS 2008 R2 and the development team did a recent migration of the databases to SQL 2012.

From our understand the packages were not upgraded and they are still of 2008 R2 Version. post migration there were few errors and we had to follow the below link to address the issue. The fix was to install SSIS 2012 and other client tools. 

http://pietervanhove.azurewebsites.net/?p=461

Things were working fine and all of a sudden we notice a peculiar issue everyday after a specific package starts running. It goes

into a never ending state and other packages are also failing. 

GAC_MSIL still has SQL 2008 R2 related ssis assemblies. 

Noticed the below messages when i had enabled logging. Script invocation errors were seen. 

does not exist in the namespace 'Microsoft.SqlServer.Dts.Tasks.ScriptTask' (are you missing an assembly reference?)

Cannot apply indexing with [] to an expression of type 'Microsoft.SqlServer.Dts.Runtime.Variables'

The referenced component 'Microsoft.SqlServer.ManagedDTS' could not be found. 

Below link deals with a similar issue and the solution there did not help too. 

https://caonnect.microsoft.com/SQLServer/feedback/details/744390/ssis-any-pre-2012-error-cannot-apply-indexing-with-to-an-expression-of-type-microsoft-sqlserver-dts-runtime-variables 

I solve the problem moving the file "Microsoft.SQLServer.ManagedDTS.dll" located in the path:
"C:\Program Files (x86)\Microsoft SQL Server\110\SDK\Assemblies" to a backup folder, then the bids take the reference from the path C:\Windows\assembly\GAC_MSIL\Microsoft.SqlServer.ManagedDTS\10.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.ManagedDTS.dll

What worked for me was a restart of the SQL instance. This again is not a permanent fix and i was wondering if anyone faced a similar issue. 

Should the team upgrade all packages to 2012? Should only one version of SSIS be running in the server? Should i add SSIS 2012 DLL files in GAC?

Requesting your Inputs and ideas in case you had faced a similar issue in the past. 


Balaji.G


Viewing all 24688 articles
Browse latest View live


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