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

Scheduling SSIS package fails

$
0
0

Hi,

I've successfully created a SSIS package and I can execute it manually. Now I am trying to schedule it as a job to run daily at certain time. For this, I tried to create a job through 'SQL Server Agent' in Sql Server Management Studio. But when I configured the Step properties and clicked 'Ok' it is throwing this error.

TITLE: SSIS Execution Properties
------------------------------
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.
------------------------------
ADDITIONAL INFORMATION:

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.

I am using Visual Studio 2010 for creating package and SQL Server 2008 R2. Also, I gave my credentials in the package's connection string. And I am trying to schedule the job with the same package credentials as the job owner.

The Protection Level in Visual Studio was set to 'EncryptSensitiveWithUserKey'.

What am I doing wrong to create a job step?

Thanks for any help!


SQL Server agent job will not retain package password (encrypt sensitive with password)

$
0
0

I have a package protected by a password - I am already unhappy that to get it to use the configuration file to change connection strings for the production servers I have had to hardcode the password into the config file - very insecure!

However, the package now deploys correctly to the production server and will run from there OK, but NOT if scheduled as a SQL Server Agent Job.  Thus is because however often I edit the command line to include the password after the DECRYPT switch (which it has prompted me for when I click on the command line tab), the Job Step will not retain it.

If I open it up after I have edited it and closed it, the password has disappeared.

 

I know that if I run dtexec plus the code in the Command Line tab (with the password), the package runs OK.

 

This is driving me insane! 

I have read all the other posts and so I tried replacing the SSIS package step with a CmdExec step and pasting that code into there - then I get an OLEDB error..

 

The code I use is:

DTEXEC /SQL "\ImportRateMonitoringTables" /SERVER servername /DECRYPT password /CONFIGFILE "D:\Microsoft SQL Server\SSIS\Deployments\RateMonitoringImportTasks\Deployment\ImportRateMonitoringTables_Production.dtsConfig"  /MAXCONCURRENT " -1 " /CHECKPOINTING OFF  /REPORTING E

 

and I get

SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x8000FFFF

 

although the same code executes perfectly from a command prompt.

 

Please does anyone have any experience with a similar problem and if so, how did you get round it?

 

Thank you

Getting Error when i try to open the package in Visual Studio 2012

$
0
0

Hello all,

below is the error I see when I try to open a package in VS 2012.

Unsupported
This version of Visual Studio does not have the following project types installed or does not support them. You can still open these projects in the version of Visual Studio in which they were originally created.
   
Non-functional changes required
Visual Studio will automatically make non-functional changes to the following projects in order to enable them to open in this version and Visual Studio 2010 SP1. Project behavior will not be impacted. 

Thanks in advance

-- S


Use Package Config DB Connection string in Script Task

$
0
0

I tried way 1 below but connection returned was null.

So I got the ConnectionString as Way 2 below and tried to create new connection

Way 1:

connection = new SqlConnection(); connection = (SqlConnection)(Dts.Connections["Restrc_dbconn"].AcquireConnection(Dts.Transaction) as SqlConnection);

Way 2:

string connString = Dts.Connections["Restrc_dbconn"].ConnectionString;

connection = new SqlConnection(connString);

This gives me error saying "Keyword not supported :Provider"

The steps I tried above does not use Package Config. Can someone please help me how to use it. And i f I use Package Config, the connection string in that also would have Provider so how can we overcome the Provider keyword error.

Thanks In Advance!!



Execute package task with project reference using connection string

$
0
0

Hi All,

i have 10 different Staging packages and i want to call only the package which need to load data.

how can i achieve this in project reference mode.

Example Pak1.dtsx,Pak2.dtsx,Pak3.dtsx,Pak4.dtsx,Pak5.dtsx,Pak6.dtsx,Pak7.dtsx,Pak8.dtsx,Pak9.dtsx,Pak10.dtsx.

based on some condition i may run any of few package in  given load.

how can i pass packagename as connection string (this is possible with External Reference).

Thank you 

Regards

BA


hi

SSIS Package conditional splitting

$
0
0

Hello,

I need some help splitting up records based on account open date. I have a set of data that has accounts with opening dates from the past three months(Dec, Jan, & Feb). I want to group them by month yet the last business day of each month needs to be included with the following month(Ex:jan 29th will be with February). I was trying to think through how to do this and its quite a challenge. I want to group the data set by months and select the max open date which will be the last business day of the month and possibly split it that way?

I am trying to use a conditional split in a package yet the condition section is puzzling for me(due to using the last business day)

Any suggestions will help!

thank you!!!

Cannot create a Debug host for the package in ssis

$
0
0

I have created a simple package in SSIS 2008R2 and while executing it, leaves me with an error

"Cannot communicate with the debug host process. Failed to obtain the child process active object"

I am not sure how to resolve the issue. While installing the 2008R2 BIDS I did not install the integration services from the list that appeared. Appreciate your help on this!

Excel OLEDB Destination Drop/Create Table Results in Empty Rows in Worksheet

$
0
0
Greetings, upgrading DTS packages and have run into an issue where I try to use the same code that was used in DTS, to perform a Drop and Create "table" to overwrite and refresh a worksheet in an Excel 8.0/2010 file using the Jet.Oledb.4.0 driver. This worked as expected in DTS but....what happens in SSIS is the Drop performs a delete but does not remove the empty/blank rows. So my initial worksheet has say 126 rows in it, when I run the package to refresh with the 100 rows of data from the souce, I wind up with a header row, 126 blank rows and on row 128 my refreshed data starts. I want to overwrite. I have found some work arounds such as using File System Task to physically delete the file and run the create statement or copy a  template file to resolve but wondering if there are any other suggestions on how to fix this as it seems simple enough. I have an existing worksheet with the proper formatted columns (numeric and text) and I just want to delete the rows and overwrite.

How to Tune MERGE JOIN in SSIS 2008

$
0
0

LookUp has been used with Full cache which compares around 10 Million rows with TARGET table to find whether it will be INSERT or UPDATE with source table and then moves forward. 

To avoid LOOKUP we use MERGE JOIN to perform LEFT JOIN and use CONDITIONAL SPLIT where the INSERT rows directly Inserted into target table and the Update record moves to a physical temporary table. In the next step use EXECUTE SQL Task and update the data into the target table.

When we are doing LEFT JOIN in MERGE the whole target table has to be scanned to find the I or U record.

The JOIN keys are fetch from TARGET table to reduce the buffer size .

We cannot use T-SQL to perform left join , since SERVER might change and query the different server using LINKED server will be an issue .

Please suggest an optimum approach to tune the load process

Executed as user: \SYSTEM. The package execution failed. The step failed.

$
0
0

Hi Everybody,

Im Cuong from Vietname
Im using SQL 2005 Server
I have a database, it's TEST.
and then, I create a new database, it's TEST_BACKUP
I export from TEXT to TEST_BACKUP ,
and create 1 SSIS package:
Package name: Backup_package

I run this package, it's ok
but when i create a job to run this package , it's no ok.

I see job history, sql server message:
The job failed.  The Job was invoked by User sa.  The last step to run was step 1 (1).
Executed as user: <ComputerName>\SYSTEM. The package execution failed.  The step failed.

Please, Help me !!!

Hotkeys in BIDS

$
0
0

Hi.

Is it possible to put Toolbox elements/items in Control flow or Data flow? I want to hit some shortcut or hotkey and to have item on top of the mouse pointer.

Tnx for your answers and best regards

Stanislav

send file to sftp

$
0
0

Hi All,

I was sending file via stored procedure to FTP server every night, till yesterday company has moved to the SFTP. I installed WinSCP and Visual Studio for SSIS. Can anyone share with me if they have used the same process to send file to SFTP.

Or can anyone suggest me the way and share any code related to send file to SFTP via SQL server.

Thank You 


Jibran Ishtiaq

Merg results of 4 sql scripts in to one text file one after another

$
0
0

Hello Friends,

I have one requirement in that I need to create one text file with some results.

Eg: I have 3 sql script each return one column with multiple resulte like below

result of 1st sqL

AAAA

BBBB

CCCC

DDDD

Result of 2nd sql

EEEE

FFFF

GGGG

HHHH

Result of 3rd sql

IIII

JJJJ

KKKK

LLLL

MMMM

Now I want final result should look like this

AAAA

BBBB

CCCC

DDDD

EEEE

FFFF

GGGG

HHHH

IIII

JJJJ

KKKK

LLLL

MMMM

In a single text file.

Please help. Thanks in advance.

//SR//





SSIS Unpivot limitations?

$
0
0
Hi, I have a quick question regarding the SSIS Unpivot transform in SSDT BI 2014. Is there a limit on the number of columns that can be unpivoted? I have a grid of budget valuescomprising of 400 rows (the business sites) and 366 columns (for each day of theyear). I seem to recall that last year I had to break the file up into months before the packagewould run, but there was a lot of time pressure and I could have just "sticking plastered" it rather than getting a more robust solution. Can a data source of this size be unpivoted in one go through the SSIS Unpivot transform?

VS2013 SSIS DataFlow not updating

$
0
0

Hi,

I have a really annoying problem with VS2013 data flows. When I run the packages, the data flows complete successfully but when I look at them in the designer, they have "0 rows" on the links and none of the items have changed colour. If I add a row count item, the variable within it does get updated, but again the UI shows the data flow as if it's in design mode. I've also tried the following:

- Add a script task with a breakpoint. The breakpoint is hit but UI still looks as if in design mode

- Reinstall SQL 2014

- Reinstall VS 2013

- Reinstall SSDT

- Checked I am local admin

- Tried using OLEDB & Flat file source & destinations

- Someone else running my package on another machine (which works fine)

- Someone else running my package on my machine (which doesn't work)

- Checked windows & SQL Logs for errors, but can't find anything.

- Numerous reboots

Has anyone else experienced this, or have any advice on how to solve it?

Thanks in advance

Bobby


SSIS catalog connection error

$
0
0


I am using environmental variables in ssis 2012 and seeing below error, any idea why i am seeing this issue.

Below is my connection string, i am connecting to sql server 2008 database

Data Source=Server_name;Initial Catalog=db_name;Provider=SQLOLEDB.1;Integrated Security=SSPI;

any help is highly appreciated 

SSMS connecting to SSIS with message Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)

$
0
0

Hi

Full message below but basically I have tried all the DCOM things in this article and still no joy 

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/8833d78b-a4c9-4743-ad0b-a3d17bdd3598/connecting-to-ssis-through-ssms-without-built-in-administrator?forum=sqlsetupandupgrade

Using Windows Server 2012 & SQL Server 2012 Enterprise

I'm a Domain Admin and SQL sysadmin so not sure what the issue is.

Any help greatly appreciated.

Rich

TITLE: Connect to Server
------------------------------

Cannot connect to server-x

------------------------------
ADDITIONAL INFORMATION:

Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&LinkId=20476

------------------------------

The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) (Microsoft.SqlServer.DTSRuntimeWrap)

------------------------------

The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) (Microsoft.SqlServer.DTSRuntimeWrap)

------------------------------
BUTTONS:

OK
------------------------------

How to disable and enable the sequence containers in a SSIS package?

$
0
0

Hi All,

We have developed an SSIS package which is using 3 sequence containers in it. We should have the ability to disable or enable any of the containers while we are executing the package. For disabling the containers we used expressions, but that does not enable back the container again. 

Is there a way where we can disable the container and also enable it back when ever we want with in the package? Please suggest me something.

Thanks,

Rahul

Error while running SSIS package through SQL server agent

$
0
0

Hi I created a job to run package from SQL server agent. 

earlier the SQL agent wasnt running so i started it but still cant run the job

first step "Start Job" is success but execute job fails and it asks me to check history but i dont see any thing that helps in history

i have logging too but dont see any error in logging file. looks like it doesnt run the package at all.

what is it i am missing? i have integration services on this server and i can run package by Execute package utility.

Thanks

How to setup SSIS Packages on AlwaysOn

$
0
0

We have two node SQL 2014 AlwaysOn - primary (active) and secondary(passive) and we need to setup the SSIS packages.

Should we setup the packages on both nodes?

What happens if the DBs failed over (or entire server fails)?  Do the SSIS packages know how to failover as well to the secondary?

What about the deployment?  How do we deploy if we have a lot of SSIS packages to update? Do we need to update on both?

I also saw some place about creating the master key, etc. so will it create any issue if we already have the TDE encryption enabled for other DBs?
Viewing all 24688 articles
Browse latest View live


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