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

Cannot insert duplicate key in object 'dbo.POLICY'

$
0
0

Hi Gurus,

I am facing this issue while running the package.

Please help to provide the cause.

Thanks in advance.

Executed as user: \portiadts. ...n 9.00.5000.00 for 32-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 8:13:37 AM Error: 2012-08-08 08:28:40.57 Code: 0xC0202009 Source: DFT - Extract from Staging OLE_DST income - POLICYNew [3689] Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E2F. An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E2F Description: "The statement has been terminated.". An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E2F Description: "Violation of PRIMARY KEY constraint 'PK_POLICY'. Cannot insert duplicate key in object 'dbo.POLICY'.". End Error Error: 2012-08-08 08:28:40.62 Code: 0xC0209029 Source: DFT - Extract from Staging OLE_DST sales- POLICYNew [3689] Description: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. Th... The package execution fa... The step failed.


Excel connection won't open

$
0
0

I recently upgraded to a new laptop running Windows 7 64 bit (which my previous laptop was as well).

I'm having trouble accessing SSIS packages I originally wrote on the previous laptop.  Both used Visual Studio 2010 with no problem, but I fear something wasn't loaded.

The package in question uses an Excel 2010 file as the source for a data flow step.  When I open the Excel source and select "Columns", it tells me "the requested OLE DB provider Microsoft.ACE.OLEDB.12.0 is not registered".  It won't even let me look at the step, let alone run it.

Reading up on the issue, I figured I needed Microsoft Access Database Engine 2010 for 64-bit windows.  I loaded it, and it shows up in the Programs list.  But I'm still getting the same error.

Is there another driver I need, or do I need to point Visual Studio to this driver?

Error connecting to Oracle

$
0
0

Hi All,

I designed SSIS package for loading data from Oracle to Sql server 2008. In connection manager I created New connection there I mention Server name and Password.

When I click on Test connection, the below error message it prompts.



Can any one help me on  this Issue.


Regards, Praveen

SSIS : Fuzzy Lookup in 32 bits

$
0
0

Hi,

In my project, i must be in run64BitRuntime at false becaus i use ODBC (mySql) how work only with this mode.

I would like to use the fuzzy lookup, but it doesn't work run64BitRuntime false, but it work when it's true.

How  can i work with both? I try to create one package in project in 64bits who it's call in project 32 bits but it does'nt work.

It's possible to change run64BitRuntime variable  in a script?

I see many topics but no positive result.

Thanks you for your help

SSIS to extract photos in correct jpg format

Dynamically Map source and Destination table in SSIS Package

$
0
0

Hi 

I came across a scenario where I have to create a ssis package which Dynamically Map source and destination table and load data.

      I have 30 table which need to be fetch from source on the basis of date column .For Data retrial my query is simple "SELECT * FROM TABLENAME" ; My tables column are different.

Please help me on this.

Regards 

Abhishek P        

   


Abhishek Parihar BI Consultant (Please mark the post as answered if it answers your question)

why DateTime Format is changing form sqlserver to the ssis variable ?

$
0
0

Hi,

I am working on loading of changed data based on datetime.

I am getting the datetime from a Execute SQL Task stored proc.

I defined two variables in the package and I am sending them as ouptut.



Everything goes good  but when its returning the value. its returning in other format.


I want to return this variables same format as SqlServer returns because I am using this variables in so many child packages as parameters. 

How should I cast these variables to the proper format in the parent level so it applies to all the child packages.

Thanks.

Runtime Oledb TableName

$
0
0

Hi,,

I am SSIS2005 i have a flat file name ABC_2012-08-08 i am loading data from flatfile to oledb destination

i want to create dynamically destination tablename (ABC_2012-08-08)

Thanks

Ram


HELP - Stored Procedure ReturnValue is always -1

$
0
0

I have the following test stored procedure:

CREATE PROCEDURE dbo.sp_TestSSIS (@a int)
AS
BEGIN
    SET NOCOUNT ON
    DECLARE @myval int;
    SET @myval = (SELECT MAX(TestValue) % 2 FROM Test_SSIS_SP)
    RETURN @myval
END

When I run it in SQL Server Management Studio I get the correct results - 0 for even number and 1 for odd.

In SSIS I use the Execute SQL Task with a OLE DB connection, ResultSet none and the following SQLStatement:

exec ? = sp_TestSSIS ?

and I have two parameters:

User::SPResult   ReturnValue   LONG   0   -1

User::SPDummy Input            LONG    1   -1

Everything I read says SPResult should contain either 0 or 1, but I'm getting -1 everytime. I've tried every which way I could think, including using OUTPUT paramters, but to no avail. What am I missing?

Prevent duplicate records in SSIS

$
0
0

Hi,

i build a different SSIS Package to import data from (flat files/Excel) to SQL Tables. i want to put some function or tool at SSIS level which can hold the data if its already uploaded.

Importing rows from SQL Server to Excel 2007 using SSIS

$
0
0

Is there any white paper or document on

Importing rows from SQL Server to Excel 2007 using SSIS

Trying hard to configure this but not sucessful


Smash126

performance tip needed

$
0
0

Hi,

We need to extract values from many different tables and consolidate into a single resultset as output.

WE have two options. Please let me know which one will be the best option.

1) To write a namedquery and call the resultset directly

2) using lookup transformation for each tables

As new to this SSIS project i would like to get clear idea of these two options in terms of performance.

Thank you !


--------------------------- Radhai Krish | Golden Age is no more far | --------------------------

Error while fetching data from DB2 using Microsoft OLE DB Provider for DB2

$
0
0

Hi,

I am using Microsoft OLE DB Provider for DB2 Version 2 for connecting to DB2 from SSIS. I am able yo connect, however I get following errors while fetching data from DB2. 

1.DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E14. An OLE DB record is available. Source: "Microsoft DB2 OLE DB Provider" Hresult: 0x80040E14 Description: "An internal network library error has occurred. The requested command encountered an implementation-specific error condition on the target system. SQLSTATE: HY000, SQLCODE: -270".

2.OLE DB Source" (5198) failed the pre-execute phase and returned error code 0xC0202009.

Can you please help me asap ?

Thanks

Yogesh Saravate.

SP used in SSIS to export data in excel is not Dynamic

$
0
0

Hi,

I am using ADO Net source in SSIS to pull data from SP & move to excel, But problem is that package is not dynamic, every time if i want to change the data range i have to change in SQL command in ADO Source. can suggest me robust idea to solve this.

Spurious data when running SSIS Package loop from SQL Server Agent 'Job'

$
0
0

Hi,

I've come accross this issue a couple of times. I build an SSIS Pkg in Visual Studio, in this case a loop that collects data from a dozen flat files and merges it into one table. When I run the Loop directly from Visual Studio it runs fine, when I trigger the same Loop using SQL Server Agent Job 'Execute SQL Package', it throws up spurious data?

If I go back to Visual Studio and re-run the same Loop, it runs correctly. Any ideas?

Also, an auxilliary question, as others have commented on this Forum, over time I see Server Agent jos slowing significantly, in the order of ten times slower over a year untill they become unusable and I have to build a new package from scratch. Is there a definitive answerto this yet?

Thanks!


Marcus B


Migration of SQL 2008 R1 packages to 2008 R2

$
0
0

Hi,

May i know what all precaution  to be handled when opening  the SQL server 2008 R1 in  2008 R2 and also  in BIDS .

can any one say what step to be followed ?

Execute pacakge task error.Error 0xC0012050 while preparing to load the package.Package failed validation from the ExecutePackage task. The package cannot run.

$
0
0

Hi I am getting below error,when I am executing parent pacakge.If I run child packages individually,then they are working fine.I ahve problem with parent pacakge only.

 Error 0xC0012050 while preparing to load the package. Package failed validation from the ExecutePackage task. The package cannot run.
.


sudha

convert from SQL Server table to Flat file (txt file) more than 1500 table

$
0
0

i have a database which contains 1500+ tables and i want to convert from SQL Server table to Flat file (txt file). i would like to know the best option avilable to make this possible with minimum effort.

i am planning to go with BCP method can any one pls explain me the process and how can i do this with minimum effort ?

Thanks

Dileep

Folder locked

$
0
0

Hi,

we have 14 packages. we are developing looging functionality  log provider for text files.once deploy the all packges into server we face faceing following issue.

issue:

 first package generate the text file  next package trying to generate the file in same folder with diffrent name geting error "Folder is locked".

how can we come out from this problem..

Best practices for unit testing SSIS packages

$
0
0

I know this question has been asked several times in the past, but the answers seem a couple of years old.

On Codeplex I've found SSISUnit, but that doesn't seem to be an active project anymore. I also tried to find some documentation on it, but didn't find any besides the "Getting started" but that only discusses a really simple package.

Can anyone get me up-to-date about the state of unit testing for SSIS these days? What do you use nowadays to test your packages?


Jean-Paul Smit | Didago IT Consultancy
Blog | Twitter | LinkedIn
MCTS BizTalk 2006/2010 + Certified SOA Architect

Please indicate "Mark as Answer" if this post has answered the question.

Viewing all 24688 articles
Browse latest View live


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