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

SSIS - Failed to Acquire Connection

$
0
0

Hello Professionals,

Basically I am from System Admin background. One of colleague (Developer) is facing an issue. We have a SQL Server (Server1) where Visual Studio also installed. Developer is creating a SSIS package in Server1 and adding a Execute SQL Task with just an insert query to a database. He is getting the below error.

Failed to acquire connection......Connection may not be configured correctly or you may not have the right permissions on this connection.

The user is running the same package from his system, it is running without any issue (Pointing same SQL Server, same DB).

Tried all these.

1) The User account used to login with Developer system and SQL Server (Server1) are Same

2) Given Full control to the folder where package resides

3) Tried pointing SQL Server using IP, Hostname, localhost etc etc.

Can anyone please explain me what would be the issue and step by step to fix it.


SSIS call stored proc based on input parameter

$
0
0

I want to create an SSIS package that can be operated in both a development and production environment. I've created dynamic connection strings for the two environments, but there is a stored procedure at the start that is different for each environment. 

I THINK I can create an expression for the SQL task to call the correct stored procedure based on the same input parameter that is passed to pull the connection strings but wanted to poll the group to see if anyone else had ever done this and if you encountered any issues with it.

My connection strings are in a table and I think I can just add the procedure names in that same table for the package to reference.

Thanks in advance.

Margaret

Row Count SSIS 2008

$
0
0

Hello, I'm using an Slowly change dimension in SSIS2008 and I need to save in two global variables the number of rows inserted and updated. I can´t use row count task in this situation? I can´t figure it out.

Thanks!

Lookup transformation fails to identify matching rows

$
0
0

I'm trying to create an incremental load for an SQL table as demonstrated in the excellent SQL Server Central Stairway to Integration Services article "Updating Rows in Incremental Loads – Level 4 of the Stairway to Integration Services".  Sad to say, I am not having the excellent results I experienced when I followed along with the examples in the article.

I have configured the following Data Flow Task: An OLEDB source that executes an SQL statement against a DB2 database feeds rows into a Lookup transformation; an OLE DB destination into which the Lookup No Match Output feeds rows for inserting new records in the target SQL Server table; a Conditional Split into which the Lookup Match Output feeds rows for determining differences between the input DB2 rows and the SQL Server table reference rows; and, an OLE DB destination that takes the rows having different values than the target and writes those rows to an SQL Server staging table.  The staging table is then used in an UPDATE statement in an Execute SQL Task that follows the data flow task in the control flow.

On an initial run, with the target table being empty, the Lookup Task directs all input rows to the Lookup No Match Output, which feeds into the OLE DB destination for inserting rows into the target table: this was the expected and desired outcome.  However, when the package is re-executed to test the update logic, the Lookup Task once again directs all of the input records to the Lookup No Match Output flow, rather than directing them to the Lookup Match Output (they should all match, as the prior run populated the target table with the same rows just moments before the second execution).

In the OLE DB source for the DB2 table, I run a SELECT query in which I use the Cast function to convert the input columns to the same data types as those of the target SQL table.   The Lookup Transformation joins with the reference table on 7 columns, which compose the unique index of the reference/target table.

 

 

dtuitl check if folder exists

$
0
0

Hi, I have a dtutil command which uploads the packages to the SSIS server as below

DTUTIL /File %CD%\Packages\%%~nf.dtsx /Copy DTS;MSDB\MyFolder\%%~nf /Q

but before running this script i want to check if MSDB\MyFolder exists on the SSIS server. If it doesn't exist then we have to create this folder. please help

SSIS transaction handling error

$
0
0

Hello All,

I have set transaction in control flow but if you look at below screen shot this package is keep running forever i don't know what wrong in it and it don't even have huge data record coming in from source table has only 300 records

NOTE: I cant use in build transaction which is in SSIS like supported , Required and unsupported since I am having DTC transaction error and i cant those properties on server so I have only below option

for data flow details find below screen shot



SSIS Date conversion from number

$
0
0

Hi I am trying to use SSIS to convert  and import data from an input text file to the sql server database .

It is giving error for a  Date field.

The input data for date is like      90407     and the out put should be  2007-09-04 . ( or mm/dd/yyyy) .It can be null too. Mote input  data sample:101112  or  50613

How do I convert it? I use a data conversion Task  with data type as DT_Date.Did not work .

I think I need to use Derived  column.Not sure what should be the expression,because the input is 7 and 8 chars long. 

I get error  The conversion returned status value 2 and status text "The value could not be converted because of a potential loss of data."

 Error: Data conversion failed while converting column "StartDt" (46) to column "Copy of StartDate"

Thanks,

Jay





Execute SP twice with different parameters within Data Flow Task returns same data set

$
0
0
In my SSIS package i have 2 DB sources each one executing the same SP but passing a different parameter. Both return the same columns and data set. Is there a way to get this to work other than writing a separate SP for each and forget about using the parameters? Thanks in advance. 

cant connect to oracle destination with ssis attunity

$
0
0

Hi,

I have recently installed the attunity oracle connector 2.0 (32bit and 64bit) on sql 2012. I have had no problem connecting to an oracle source and extracting data.  I just tried to connect to an alternative oracle source and get an error:

OCI error encountered. ORA-01017: invalid username/password; logon denied

I can tnsping the server fine so I know my tnsora file is set up ok. I can also connect to the oracle db using oracle sql developer so I know I have the correct user/pass and have access.

What else could be preventing my access and giving this error?

Thanks,

Dan

2012: Execute Package Task (external reference) Very Slow in SSDT

$
0
0

Hi All,

I have 4 packages which I've deployed using the package deployment model to the MSDB package store.

Configuration setup is System Env Var pointing at SSIS Configurations table that populates the connection string of my SSISConfig data source. Source/Dest configurations are in the SSIS Configuration table.

I have a  'master' package that executes the 4 packages in parallel using the Execute Package control flow task (external reference, SSIS Package Store)

When I execute this master package in SSDT it takes 1minute 56 seconds to finish. All the execute package tasks seem to hang until the last few sec then finish one after the other. It's the same if execute one of the Execute Package Task items individually. It just hangs there for nearly 2 min then rushes through its work (i've verified by looking at the destination tables; nothing happens until the end).

But the packages executed directly in ssdt take 2-3 sec to execute.

I've deployed the master package to the server and executed it via SSMS. It takes <3 sec.

I've RDPed into the ssis box and it's the same. Executing the packages individually or the master package in dtexecui takes less than 3 sec.

Something's going wrong inside SSDT (some kind of timeout? but there are no error msgs or warning) that's making it take nearly 2 minutes.

Have others experienced this? Have I misconfigured something? The env var has been working on my local machine since last week and i've restarted many times since then, so I'm positive SSDT is using the 'current' version of the env var.


Jakub @ Adelaide, Australia

SSIS Package Job schedule Issue

$
0
0

Hello,

I have creasted one SSIS Package and scheduled it on SQL server Agent. It is giving an below error while running this Job.

[ I am Using Sqlserver 2012 and i have used File System option while Scheduling a Job  ].

Executed as user: NT Service\SQLSERVERAGENT. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 64-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  8:37:00 AM  Error: 2014-01-30 08:37:00.72     Code: 0xC0016016     Source: Package      Description: Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available.  End Error  Error: 2014-01-30 08:37:00.83     Code: 0xC00291EC     Source: Execute T-SQL Statement Task Execute SQL Task     Description: Failed to acquire connection "MyConnection". Connection may not be configured correctly or you may not have the right permissions on this connection.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  8:37:00 AM  Finished: 8:37:00 AM  Elapsed:  0.344 seconds.  The package execution failed.  The step failed.

Could you please suggest me for the same.

Ignore SQL Server Destination errors during local developement

$
0
0

Hi.

Is it possible to ignore SQL Server Destination errors during local development? Actually I have to delete the component to start the dataflow if not running on the server, even if I do not like to write data into the database. I would be fine to use dataviewers.

Cheers,

Nils

Retain last three file and delete the remain.

$
0
0

Hi all

I have on e folder that contain file for every Monday with name like 20140203-a-b

I need to do task in which I need to delete a file thats name contains last three week value.

Like my file name is .

20140203-a-b

20140127-a-b

20140120-a-b

20140113-a-b

now I need to retain last three week file only and delete 20140113-a-b.

Thanks

compare two columns

$
0
0

I am pulling two tables from two different sources. I have to do the following tasks:

1) I have to compare a column from both the sources and find values that are missing in either of the columns and finally make it as one column with all the values(including the one that was missing) and that should be the output. All the missing values should additionally get into another file.

Data looks like this

    columnA-Source1    columnA-source2      Status

      10                            10

      20                            25

      30                            35

      40                            40

1) The final result in file 1

      Column A    

       10

       20

       25

       30

       35

       40

2) output in file 2

     MissingValuesinSource1      MissingValuesinSource2

       25                                        20

       35                                        30

Package Fails Before Reaching the Maximun Error Count IN SSIS

$
0
0
I have created the SSIS Package to Call the Stored Procedure and i set the Maximum Error to 20. To check the Error Handling , i itself done the new data changes to raise the Error. In Development Environment , package fails once it reaches the 20 Error Count. But in QA Environment , package fails once it reaches 5 Errors. I double check the Maximum Error Count and it set to 20. I am not sure what is happening ? Please help me out to solve this issue.

SSIS package failing

$
0
0

 

We are porting an existing package from SQL Server 2005 to Katami and are getting the following error:

 

Code: 0xC0209303     Source: MasterSSIS Connection manager "SSISOperations"     Description: SSIS Error Code DTS_E_OLEDB_NOPROVIDER_64BIT_ERROR.  The requested OLE DB provider is not registered -- perhaps no 64-bit provider is available.  Error code: 0x80040154.  An OLE DB record is available.  Source: "Microsoft OLE DB Service Components"  Hresult: 0x80040154  Description: "Class not registered".  End Error  Error: 2007-09-14 09:43:35.00     Code: 0xC0209303     Source: MasterSSIS Connection manager "SSISOperations"     Description: SSIS Error Code DTS_E_OLEDB_NOPROVIDER_64BIT_ERROR.  The requested OLE DB provider is not registered -- perhaps no 64-bit provider is available.  Error code: 0x80040154.  An OLE DB record is available.  Source: "Microsoft OLE DB Service Component...  The package execution fa...

 

Katami is installed on Longhorn Server

Last modified date on SSIS package on the server

$
0
0

Hi, we are uploading the SSIS packages to the MSDB folder on Integration services. I keep on uploading the new versions of the packages. I want to know if there is any way i can check the updated timestamp on these packages. I see the table sysdtspackages but it gives only the created time, not the updated time. Anyone faced this issue. thanks

Flat File naming expression captured in variable

$
0
0
I have several flat files that are created using a dynamic naming expression. I eventually will need to ftp each of these files. Is there a way to capture the entire expression generated as a variable and use that variable as my source for ftp files? Maybe there's a better way to achieve this programmatically. Thanks in advance.

Combine data from a table and insert to another in comma separated format

$
0
0

In my SQL database table i have some data as shown below.

KNO       Course      Grade     Institution

124        BTECH       First       IIT Calicut

128        BE             First       KKS Institute

124        CCNA         Q          NIIT Delhi

124        DDCN         Q          Appl Calicut

128        DIT            A         NIIT Delhi

128        VB              Q        IICM Delhi

i want this courses to be arranged as sample given under to a table named mainpers

KNO    Course    

124     BTECH[First], CCNA[Q],DDCN[Q]

128     BE[First], DIT[A], VB[Q] 


I am a System Administrator at Vadodara

The @flags parameter is not valid for a job step of type 'SSIS'

$
0
0

Dear Support,

I am trying to migrate SharePoint 2010 on premise server to SharePoint 2013 server but we are getting issues regarding sql server agent job as mentioned below.

Performing operation

- Add log for package (Success)

- Add task for transferring database objects (Success)

- Create package (Success)

-Start SQL Server Agent Job (Error)

Messages

·Create failed for JobStep 'CDW_SPS2010_SPS2013_0_Step'. (Copy Database Wizard)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.4000.0+((KJ_PCU_Main).120628-0827+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Create+JobStep&LinkId=20476

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

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

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

The @flags parameter is not valid for a job step of type 'SSIS'. (Microsoft SQL Server, Error: 14545)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.00.2100&EvtSrc=MSSQLServer&EvtID=14545&LinkId=20476
 

- Execute SQL Server Agent Job (Stopped)

Would request your support for solving in this matter.

Thanks & Regards

Akhilesh

Viewing all 24688 articles
Browse latest View live


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