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

[OLE DB Source [28]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Source" failed with error code 0xC0202009.

$
0
0

I have several SSIS Packages I have created in BIDS which I have been running manually just fine for the past few months. These packages connect to an Oracle database.

However, this week when I try to run them, I get the following error message: [OLE DB Source [28]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Source" failed with error code 0xC0202009.

I have tried creating a new package to test the configuration of the connection in the Connection Manager. When I create a new Data Task Flow and add an OLE DB Source, I am able to Parse Query and Preview just fine.

However when I try to Exicute Task or Start Debugging, I get the same error message as above.

I dont have any problems with my SQL Tasks.


Setting up Teradata connection manager

$
0
0

Hi,

I am running SSIS 2005 and has requirements to source data from Teradata but I do not see a costume Teradata provider in the SSIS Connection Manager list. Any help in setting up a connection manager to Teradata is appreciated.

Thanks


Francis, MCTS: BI 2008, MCITP: BI 2008 Stay Thirsty My Friends

Issue in "Programmatically adding OleDb Command Transformation in Data Flow" using wrappers for SSIS 2008 r2.

$
0
0

Hi,

I am trying to generate SSIS 2008 r2 package programmatically.

I am using following libraries for the same in my C# project:

  • Microsoft.SqlServer.DTSPipelineWrap
  • Microsoft.SqlServer.DTSRuntimeWrap
  • Microsoft.SqlServer.ManagedDTS

I need a sample code for "programmatically adding OleDb Command Transformation in Data Flow". I am using Parameterized query as a SqlCommand. I am not able to figure out how to set parameter values for this Parameterized SqlCommand programmatically.

Cheers.

Issue in "Programmatically adding OleDb Command Transformation in Data Flow" using wrappers for SSIS 2008 r2.

$
0
0

Hi,

I am trying to generate SSIS 2008 r2 package programmatically.

I am using following libraries for the same in my C# project:

  • Microsoft.SqlServer.DTSPipelineWrap
  • Microsoft.SqlServer.DTSRuntimeWrap
  • Microsoft.SqlServer.ManagedDTS

I need a sample code for "programmatically adding OleDb Command Transformation in Data Flow". I am using Parameterized query as a SqlCommand. I am not able to figure out how to set parameter values for this Parameterized SqlCommand programmatically.

Cheers.

Variable Assignment Error: Cannot find solution, what am I doing wrong?

$
0
0

Hello everyone:
Searching on the net I realized this is a very common error but I am baffled, because after all the changes and fixes applied, I still cannot get this thing to work.

The objective is to process email task if the Error Number is Not Equals to Zero or if the Task Fails.

I have some TSQL Statements wrapped in a TRANSACTION: I want to send an email if the process failed. This is what the code looks like, I am using the error number as a value for the Variable in SSIS.

Note: I have an email scripting task that works well.

USE [ENTERPRISE]
GO

BEGIN TRY
BEGIN TRANSACTION;

/*RUN STATEMENT HERE*/

COMMIT TRANSACTION;
END TRY

BEGIN CATCH

IF @@ERROR > 1
BEGIN

ROLLBACK TRANSACTION;
END	
SELECT ERROR_NUMBER() AS ErrorNumber;
END CATCH;
GO

Here are the steps in Visual Studio 2012/SSIS.


I get the following error message: I have changed this configuration a hundred plus times but cannot get this thing to work.

Error: 0xC002F309 at Process Data (Stage 2), Execute SQL Task: An error occurred while assigning a value to variable "ErrorNumber": "Exception from HRESULT: 0xC0015005".


Thanks for checking:

OG.

Change regional settings on a SQL proxy account for SISS jobs

$
0
0

We have a couple of SQL jobs that run SISS packages that outputs some files. The SQL Agent user that execute the jobs have english regional settings. Now we want to run some of the jobs with another user that has an another regional settings. 

I have tried to logon with the SQL Agent user locally on the DB-server and changed the Regional settings and the sql jobs will go perfect with the new format in our ouput files but when I try to setup a new account as an SQL Proxy user the regional settings does not seem work through a proxy.

So is there a restriction on the proxy user or have I missed something?

Runnining MS SQL 2008 R2.

Running with different Collation on server and on the databases.

Added the needed local policies for the SQL Agent.

Issue while trying to access list data in Sharepoint Server from SSIS sharepoint list source

$
0
0

I am using SQL Server 2012. I am facing Issue while trying to access Sharepoint list data from SSIS sharepoint list source.

Can any one help me out to get rid of this issue.My sharepoint data is located in Cloud

Thanks in Advance

I am getting following error

System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'Negotiate,NTLM'. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.

at System.Net.HttpWebRequest.GetResponse()

at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

--- End of inner exception stack trace ---

Time In and TimeOut Records (very urgent Please)

$
0
0

Dear All,

I Need to display Time In and Timeout Details in My Report...

Herewith i have attached table structure and Expected output...

Looking for a favorable reply...


VISITOR IN TABLE

EMPID           NAME    ACTION       visitorTime
1                  ASWIN    IN        2013-03-15:01:23
1                  ASWIN    IN        2013-03-15:15:17
1                  ASWIN    IN        2013-03-15:22:10
2                  ANJALI    IN        2013-03-15:05:23
3                  RINI        IN        2013-03-15:07:45
1                  ASWIN    OUT        2013-03-15:12:32
1                  ASWIN    OUT        2013-03-15:24:10
2                  ANJALI    OUT        2013-03-15:18:15
3                   RINI       OUT        2013-03-15:30:28



EXPECT OUTPUT

EMPID      NAME           INTIME             OUTTIME       
1           ASWIN     2013-03-15:01:23    2013-03-15:12:32
1           ASWIN     2013-03-15:15:17    NULL
1           ASWIN    2013-03-15:22:10    2013-03-15:24:10
2          ANJALI     2013-03-15:05:23    2013-03-15:18:15
3          RINI         2013-03-15:07:45    2013-03-15:30:28

Thx.
 


BIDS throwing an error "An item with the same key has already been added."

$
0
0

Hi everyone I am facing a problem everytime I try to create a dataset in SSRS report it throws an error "Could not update a list of fields for the query. Verify that you can connect to a data source and your query syntax is correct." and in the Despcription of the Error window it says "An item with the same key has already been added."

The Steps I have already done.

1) The query runs fine in Management Studio.

2) The query runs fine even in SSRS project in query designer and shows the expected results.

3) I deleted the Shared Data source and created again but no joy.

4) I created another project , new data source new dataset but again its throwing the same error.

5) I ran a very similar query in Northwind database and it threw the same error.

6) I have installed Sql Server 2008 R2 Service Pack 2. (some blogs online recomded it but no joy)

SELECT
  C.Country,
  C.City,
  C.CompanyName,
  ISNULL(COUNT( CASE WHEN MONTH(OrderDate) = 1 AND YEAR(OrderDate) = 1997 THEN O.OrderID ELSE NULL END) , 0)  AS January,
  ISNULL(COUNT( CASE WHEN MONTH(OrderDate) = 2  AND YEAR(OrderDate) = 1997 THEN O.OrderID ELSE NULL END) , 0)  AS Feburary,
  ISNULL(COUNT( CASE WHEN MONTH(OrderDate) = 2  AND YEAR(OrderDate) = 1997 THEN O.OrderID ELSE NULL END) , 0)  AS Feburary,
  ISNULL(COUNT( CASE WHEN MONTH(OrderDate) = 3  AND YEAR(OrderDate) = 1997 THEN O.OrderID ELSE NULL END) , 0)  AS March,
  ISNULL(COUNT( CASE WHEN MONTH(OrderDate) = 4  AND YEAR(OrderDate) = 1997 THEN O.OrderID ELSE NULL END) , 0)  AS April,
  ISNULL(COUNT( CASE WHEN MONTH(OrderDate) = 5  AND YEAR(OrderDate) = 1997 THEN O.OrderID ELSE NULL END) , 0)  AS May,
  ISNULL(COUNT( CASE WHEN MONTH(OrderDate) = 6  AND YEAR(OrderDate) = 1997 THEN O.OrderID ELSE NULL END) , 0)  AS June,
  ISNULL(COUNT( CASE WHEN MONTH(OrderDate) = 7  AND YEAR(OrderDate) = 1997 THEN O.OrderID ELSE NULL END) , 0)  AS July,
  ISNULL(COUNT( CASE WHEN MONTH(OrderDate) = 8  AND YEAR(OrderDate) = 1997 THEN O.OrderID ELSE NULL END) , 0)  AS August,
  ISNULL(COUNT( CASE WHEN MONTH(OrderDate) = 9  AND YEAR(OrderDate) = 1997 THEN O.OrderID ELSE NULL END) , 0)  AS September,
  ISNULL(COUNT( CASE WHEN MONTH(OrderDate) = 10  AND YEAR(OrderDate) = 1997 THEN O.OrderID ELSE NULL END) , 0)  AS Octuber, 
  ISNULL(COUNT( CASE WHEN MONTH(OrderDate) = 11  AND YEAR(OrderDate) = 1997 THEN O.OrderID ELSE NULL END) , 0)  AS November,
  ISNULL(COUNT( CASE WHEN MONTH(OrderDate) = 12  AND YEAR(OrderDate) = 1997 THEN O.OrderID ELSE NULL END) , 0)  AS December
  
FROM dbo.[Order Details] OD INNER JOIN dbo.Orders O
ON OD.OrderID  = O.OrderID
INNER JOIN dbo.Customers C
ON O.CustomerID = C.CustomerID
GROUP BY C.CompanyName, C.Country,C.City
ORDER BY Country

Can anyone please advise me what could be the problem and how to fix it ????? or anyone who faced the same problem and found a way around to it please need help!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Thank you

Regards

Mo

For Each loop issue in SSIS

$
0
0

I am loading set of files using for each loop conatiner in ssis. if any file is not readable or on error i am having event handler to insert the error message to the database, and in the control flow on error in the foreach loop and moving the error file to error folder.

ISSUE: i have two files first one is in wrong format second is correct file. so while loading the 1st file for each loop get error and it calls event handler. the event handler fails with issue not able to catch the full system error message. so the for each loop fails. now the error link in foreach loop is triggered and its movinging the file to error folder. here it has moved the 2nd file to error folder instead of 1st file.

why the for each loop is returning the 2nd file name to move ?

how to avoid it ?


Prasanna


Merge Statement does not run when package is run as a step in job agent

$
0
0

I have a SSIS package that runs daily as a step in the job agent, 21 of 42, and last week I added a Sequence Container to the package to run two Execute SQL Tasks. Both of the tasks use the merge statement with an update and insert specified using a CTE as the source. The target is a table I add records to in the same package in the prior Execute SQL Task. The Precedence Constraint value for the new Sequence Container is Success. There is another Sequence Container after the one I add that loads and process the cube.

The Merge statements execute as expected in the query window in Management Studio and if I manually execute the sequence container in the SSIS package, (right click Execute Container).

When the step runs in the job agent it is as if the sequence container is ignored as nothing is updated, the cube however is processed. I thought maybe the job agent was running an old version of the package so I reselected the package with no change in the result. I have no options checked in the Job Step Properties. The job step does not error. There are no errors in any of the logs. The IsolationLevel is set to Serializable on each container in the SSIS Package.

I have other steps in the same Job Agent package that include the Merge statement but they run as a Transact- SQL Script.

I have looked on-line but do not see any similar issues.

Below is one of the code bits where I use the merge statement.

with pay_Cte as(
Select dh.WorkDate 
, case when ne.CJOBTITLE = 'Material Handler' then sum(dh.DailyHours * coalesce(ad.Rate,0)) else 0 end as DirectPay
, case when ne.CJOBTITLE <> 'Material Handler' then sum(dh.DailyHours * coalesce(ad.Rate,0)) else 0 end as SupportPay
, case when ne.CJOBTITLE = 'Material Handler' then sum(dh.DailyHours ) else 0 end as DirectHours
, case when ne.CJOBTITLE <> 'Material Handler' then sum(dh.DailyHours) else 0 end as SupportHours
from dbo.DCDailyHours dh
join dbo.Nova_Employee ne on ltrim(rtrim(ne.CEMPID)) = dh.EMPID
left outer join dbo.v_ADPRates ad on cast(ad.empno as numeric(15,0)) = cast(ne.cempid as numeric(15,0))
Where CGROUP7 like '%DISTWI%'
and dh.WorkDate = cast(DATEADD(dd,-1,current_timestamp) as DATE)
--and dh.WorkDate = '08/25/2013'
group by dh.WorkDate , ne.CJOBTITLE
)
, summary_cte as(
Select 7 as division_id, WorkDate, SUM(DirectPay) as directpay, SUM(SupportPay) as supportpay, SUM(directhours) as DirHours, SUM(supportHours) as SupHours
from pay_Cte
group by WorkDate
)


--Select division_id, workdate, dirhours, directpay, suphours, supportPay from Summary_cte 

merge dbo.DailyTotals as tr
using (Select division_id, workdate, dirhours, directpay, suphours, supportPay from Summary_cte ) as ct
on cast(tr.datadate as date) = cast(ct.workdate as date) and tr.division_id = ct.division_id
When matched then 
	Update
	Set tr.DirectHours = coalesce(Tr.DirectHours,0) + ct.DirHours
	,tr.SupportHours = coalesce(tr.SupportHours,0) + ct.SupHours
	, tr.DirectPay = coalesce(tr.DirectPay,0) + ct.DirectPay
	,tr.SupportPay = coalesce(tr.SupportPay,0) + ct.SupportPay
when not matched by target 
then Insert(Datadate, Division_id, directhours, directpay, supporthours, supportpay) values(ct.workdate, ct.Division_id,ct.dirhours, directpay, ct.suphours, ct.supportPay);

SSIS 2012: Kerberos issue, how to solve it?

$
0
0

Hi,

I have an SSIS 2012 server where I<m using the Integration Services Catalogs feature. my database with the data is on another server and I<m using the windows authentication for my connections.

When I try to start a package from a remote computer (using SSMS or the dtexec command line tool) SSIS is not able to access the database because the kerberos delegation failed.

if I run the dtexec command directly on the SSIS Server, everything works fine (no kerberos issue as expected)

The kerberos works fine on my environment, SSRS use it without any issue.

so is there any documentation which explain how to configure the SSIS server and the services to make the kerberos delegation working?

what are the SPN entries to create? can we use a domain account to run the SSIS service? or do we have to the network service account?

I'm not able to found any info on this.

thanks.

How to execute MYSQL restore from SSIS

$
0
0

I have to write a package to restore a MySQL database dump to a MySQL database.  Then I have to suck the data out of the MySQL database into SQL Server (the easy part).

The following dos command restores the backup file to MYSQL:

"c:\program files\mysql\MySql server 5.6\bin\mysql.exe"  --user=root --password=mypass  TargetDB < c:\files\ecc_db_master.sql

When I try to put this into an Execute Process Task it fails.  I can't seem to get the "< c:\files\ecc_db_master.sql" right.  I have tried to put it into the StandardInputVariable with no success.  With no StandardInputVariable MYSQL starts a dos window and allows me to enter manual queries so I know that part is fine.  I tried to append the same string to the Arguments, and that fails by confusing MYSQL.exe.  So does anyone know how to do this? 

Thanks,

Michael

SQL 2008 R2 SSIS integrate with SharePoint 2013

$
0
0

I created SSIS (SQL 2008) packages that works with SharePoint 2010 in the past. In my new job, I am working with SharePoint 2013 and SQL 2008 R2. I found two issues:

(1)   After I installed SSIS SharePoint List Adapter http://sqlsrvintegrationsrv.codeplex.com/releases/view/17652, I do not see the SharePoint list option in the source or destination sections (I tried both 32 bit and 64 bit)?

(2)   Then I add Microsof.SharePoint to reference in the project. There is a yellow triangle with exclamation point next to the Reference and no SharePoint server object is available.

I just wonder is this a SQL version issue and do I need SQL 2012?  I really appreciate your help.

Many thanks

Dynamic excel source - delayvalidation not helping

$
0
0

Hi,

I am already crazy about that. My technique works perfectly for txt files or csv files. But not for excel.

I have folder, which is normally empty and my foreach loop goes through all xlsx files (with same sheet name and same format) and gets data. I have just created template file in that folder and defined everything in Excel source container.  I use variable @ExcelFilePath filled by foreach loop container, which is used in expression ExcelFilePath for excel connection manager.

It works fine until I delete template file, it says, that file is missing. I checked few discussions and set DelayValidation=true on excel connection manager, but no change.

I have to set load of 25 kinds of excel files , I dont want to keep 25 template files somewhere. Why it works for txt and not for excel ?

thanks


Attunity Oracle connector just spins and spins

$
0
0

So I've got an SSIS Job that uses the Attunity Oracle connector. I use a SQL Command to pull my info.

SELECT DISTINCT 
A,
B,
C,
D,
E,
F

FROM TableName
Where AwardDate >= TO_DATE('01/NOV/1990','dd/mon/yyyy') AND Location LIKE 'DC%'

This works great in SQLPlus and is accepted fine in the SQL Command within the Oracle Source. BUT when I go to preview or start the data flow it just hangs up. Preview will just sit there and not do anything. The Dataflow starts fine and the yellow circle just spins forever.

Any ideas?

User sync with IBM SPSS Data Collection Server

$
0
0

Hello all,

The first and most important thing I would like to do is to be able to import users tomrUserData then set some roles to these users.

I'm trying to find out any information about IBM Data Collection Interviewer Server Databases. The only reference I was able to find is "mrUserData. This database contains the following tables related to IBM® SPSS® Data Collection Interviewer Server Administration and Interviewer Server:" which is extremely insufficient.

Any help would be very appreciated if there is someone with experience with data integration with IBM SPSS Data Collection Server.

thanks in advance

SSIS package runs in DtexecUI but fails in Dtexec

$
0
0

The same package (on the same machine) runs fine in DtexecUI but fails in Dtexec with the error message  DTS_E_PRODUCTLEVELTOLOW. We checked both 32 bit and 64 bit version of Dtexec, they both fail.

I was under impression that DtexecUI and Dtexec are powered by the same engine, is it wrong? Why their functionalities are so different?

SSIS package acts differently in another machine

$
0
0

Hi,

My SSIS package is reading the text file and insert the details into table. Every day a new file will come. To cross check this, i rename the file after read. So its returning error message if the file not found next day. It is working good when try to read the file if the file is not there, the package stopped at my system in the testing environment.

I moved to the production environment once the file was not shown, but it didnt returned error message while trying to read, it gave error message while attempting to rename the file. Every process got over and went wrong.

My question is how it didnt give any error message while trying to read the file? The file was not there on the day. Its working good in testing environment at my system, i am wondering why its behaving differently in server. Same settings and versions in both machine.

Please help me to find out the reason.

Thanks

SSIS Data Conversion

$
0
0

Hi,

          I have a question regarding Data Conversion , i have a  source as Access data base in which one of the field(name of the field is ServiceCode ) is declared as  MEMO field . So i converted  ServiceCode field to  UniCode string[DT_WSTR] using Data Conversion . Its throwing me an error saying that

[Data Conversion [198]] Error: The "output column "SERVICECODE" (418)" failed because truncation occurred, and the truncation row disposition on "output column "SERVICECODE" (418)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.

        I have a large string of data from access  in lots of rows, when its trying to convert thats where its erroring out . Are there any solutions to this type of situation .

    Even I tried to convert to ServiceCode field to UniCode text stream[DT_NTEXT] ,its throwing me an error . Cannot convert to Unicode text stream .

          Thanks in Advance

 

Viewing all 24688 articles
Browse latest View live


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