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

unable to pass values to the parameter through ssis package

$
0
0

HI All,

  I have created a package , which is internally calling a stored procedure with one input parameter(ex:@History). Now I have to pass values(1,2,3,4........11,12) to the parameter(@History) through ssis package. If value =1 then sp will fetch the data for 6 months(logic of sp : Need to fetch data for 6 years(For every value 6 months data)) . I have to pass values from outside of the package. I have used below property to pass values to the parameter undersetvalues when i select Type: sql server Integrationservices package inSqlserver Agent Job:

\package.variables[variableName].Value ; value

Ex:\package.variables[History].Value ; 1

      \package.variables[History].Value ; 2

       \package.variables[History].Value ; 3

upto   \package.variables[History].Value ; 12

  I have added twelve steps in each step i have  given above property.

When i run the package the following error i am getting:

Message
Executed as user: VMT\KE-DV6-SVC-SQL. Microsoft (R) SQL Server Execute Package Utility  Version 10.0.2531.0 for 64-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  14:06:53  Error: 2012-12-15 14:06:53.68     Code: 0xC0202009     Source: Data Flow Task OLE DB Source [1]     Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.  An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "Syntax error, permission violation, or other nonspecific error".  End Error  Error: 2012-12-15 14:06:53.68     Code: 0xC004706B     Source: Data Flow Task SSIS.Pipeline     Description: "component "OLE DB Source" (1)" failed validation and returned validation status "VS_ISBROKEN".  End Error  Error: 2012-12-15 14:06:53.68     Code: 0xC004700C     Source: Data Flow Task SSIS.Pipeline     Description: One or more component failed validation.  End Error  Error: 2012-12-15 14:06:53.68     Code: 0xC0024107     Source: Data Flow Task      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  14:06:53  Finished: 14:06:53  Elapsed:  0.297 seconds.  The package execution failed.  The step failed.

Can anyone help on this?

Thanks in advance

Visu


Accessing Time Dimension (that is build in SSAS) in SQL Server.

$
0
0

Hello.

I have created time dimension in analysis services of Visual Studio 2008. Now I want to add this dimension table into my dimensional model that is already built in SQL Server 2008 data base. Can I generate the script of that time dimension ? or can directly access into my database.

Thanks

How To Explain In SSIS interviews?

$
0
0

How to answer below questions in interviews?

designing strategies for ETL audit, load balance, exception handling and high data volumes in ssis

Thanks

CMK...

Want to Retain NULL values while importing Data From OLEDB Source(table) to Flat text file

$
0
0

I'm generating flat Pipe delimited text file from a SQL OLEDB(database table) using SSIS DATA FLOW TASK.

Some Columns contain blank or some of the column contain NULL values . WHen file is genearting it showing Blank('  ') in place of NULL/blank.

e.g. data is showing like ABC||XYZ| but I need the format likeABC|NULL|XYZ|NULL.

Please help me in this regard.

Anu

HOW FAIL A PACKAGE USING SCRIPT TAST WITH AN ERROR MESSAGE

$
0
0

Hi all

We are using ssms 2005 in our project.

I have created a package which has a precedence constraint condition.

I have given two precedence contraint from a execute sql task.

(First precedence constraint)->Lets say if the condition 1 is satisfied the package should succeed, which is functioning correctly.

(Second precedence constraint) ->if this condition fails  I want a script task which simply fails the package with an error message 'this package failed due to wrong row count', which should come in the 'output' window .

Could  some one help me with the vb code for the script task... Let me know if  I should provide more info on the scenario.

Regards

Praveen..

script component input buffer issues

$
0
0

Hello,

I have a script component that creates a '|' delimited file. the input for this script component is from an oledb source, the problem im facing now is not all rows from the oledb source that is being fed to the script component buffer is being processed by the script component, it randomly picks up two rows from the buffer and process it as the text files(i sometimes have 5-10 rows in the buffer but only two gets picked up). I have tried using the different function Input0_processInput()/input0_processInputRows()/processInput but much to my disappointment im not able to control the data in the buffer.

any ideas or workarounds on how i can better control the data in the buffer.

would appreciate your replies.


How would you configure connection to make it work on different environments?

$
0
0
How would you configure connection to make it work on different environments?

2k8R2 - checkpoints + system::starttime

$
0
0

Quick question;

What will be the value of System::StartTime of a rerun of a failed package if I have checkpoints enabled?

Will it be the starttime of the original run or the start time of the current run?

if it's the former is there a simple way to get the start time of the current run?


What is the issue with SSDT?

$
0
0

Well, I've done everything I could think off to get this to work properly in

VS 2010 Ultimate.

Install, uninstall, registry, update, mxl,6.0, over and over, and still get this when I try to open an SSIS project:

"Microsoft Visual Studio is unable to load this document. To design Integration Services packages...etc,etc."

I've run SQL 2012 Setup enterprise, down loaded and run the Dec_SSTD.iso", but still can't get it to work,

I'm on a 32bit Pentium 2 laptop running Win 7 Ultimate.

WHAT GIVES?

"

ADO NET Destination has failed to acquire the connection on production environment with transaction="required"

$
0
0

Hi all,

I've SSIS package which runs perfectly on development environment ( Windows 7 ) with transaction=required on package.but when i run this package on client environment ( which is run on"windows embedded posready 2009" ) it gives me error saying like this

ADO NET Destination has failed to acquire the connection {76098398-bf64-4b57-82a2-343e8e4fe562}. The connection may have been corrupted.
component "AdoDesBillDetail" (3780) failed the pre-execute phase and returned error code 0xC0208452.

Then i try with disabling transaction option ,then it's work fine, cannot understand what is the problem , if u guys face the same problem pls help me to resolve this.

** I've attached screenshot of MSDTC config on client environment,please see this as well. The development environment config also same.

Thanks & Regards,

Dimuthu


Dimuthu

Executing multiple SSIS package instances

$
0
0

I have implemented a parent child package hierarchy which works as below:

1. The parent package keeps running in an infinite loop and keep scanning a table every few seconds.
2. Based on conditions, a record might be picked up and passed to a child package through an Execute Package task.

I would like to run multiple instances of the child package by in parallel by adding an execute package task (which is the final task in the package).
However, I would like to ensure that in case one instance of child package is executing, the parent package should not be waiting at the last step for each child instance to complete. It should continue scanning (that is the control flow should start from the begining) and invoke more instances of child package. The control seems to return to the parent package from the execute package task after the child package execution complete.
I am wondering if setting the Execute package task to run "Out of process" will accomplish this task.

If yes, what are the ways in which the number of parellel instance executions can be controlled?
By the way, I get "SSIS pipeline error: to execute package out of process you must install <task name>". I have SSDT installed on my VM. Should be deploying both parent and child, on a server with SSIS installed, to get it workiing?

Any suggestions?

Thanks
Mac


Restore Script TSQL sqlserver 2005

$
0
0

We use to restore around 60 databases from the backup folder in test server.

can any one please proved me the TSQL script to restore all databases in single shot or script out the restore querys in single shot from the backup files.

Integration Services Catalogs 2012 - Copy Environment

$
0
0

Is there an easy/built-in way to copy Environments (and all its variables) in the Integration Services Catalogs?

All I found was a solution by adding it via the database

Please mark the post as answered if it answers your question | My SSIS Blog: http://microsoft-ssis.blogspot.com | Twitter


extract date from string using script task

$
0
0

Hi-

I have some flat files with name as:

"abc20120212"
"YYYYYYY20110909".....and so on

I'm creating SSIS package to transfer data from multiple flat files to a destination table. I  have to extract the date from file name and according to that date destination will be set

So how I can read files and extract date from the file name and use that date in making condition ,using script task. I need to use script task in control flow level so that i can set my destination.C# code can be more helpful.

Pls help. Its urgent


j

SSIS 2005 remove and/or edit connections from Connection manager

$
0
0

Hi,

I'm using SSIS 2005

When I add a new (OLE DB) connection manager to a package, it prompts for "Configure OLE DB Connection Manager"
and shows al my previously created data connections.

There are 3 things i want to accomplish :

1) remove some old unusable connections from the list

2) rename some of the DB2 data connections because they are now named :                                         

            server.catalog.user
                       server.catalog.user1
                       server.catalog.user2 etc

3) edit the properties of the stored connection

I've searched for remove and rename connection managers, but all I can find is how to remove them from a package, not from the dialog that shows when you add a new one.

If I only could find where these connections are stored . . .

TIA


Sql Server Agent problem running a package with sharepoint list updates ?

$
0
0

Executed

asuser: EMEA\USERx$....rsion 10.0.1600.22for 32-bit

Copyright

(C) Microsoft Corp 1984-2005.All rights reserved.
 

The ERROR . This task writes out to a sharepoint list.

 

Started:

10:54:31Error: 2012-01-04 10:54:51.26Code: 0xC0047062

Source:

Task 35 c - Exportof datatodata entry sharepoint list SharePoint List Destination 1 [251]

Description:

System.ServiceModel.Security.MessageSecurityException: The HTTP requestis unauthorizedwith clientauthentication scheme'Ntlm'. The authentication header receivedfrom theserver was'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

 

--- Server stack trace: at System.ServiceModel.Channels.HttpChannelUtilities.ValidateAuthentication(HttpWebRequest request, HttpWebResponse response, WebException responseException, HttpChannelFactory factory) at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory, WebException responseException, ChannelBinding channelBinding) at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout) at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]

: atSystem.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32type) at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListsService.ListsSoap.GetListAndView(GetListAndViewRequest request) at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListsService.ListsSoapClient.ListsService_ListsSoap_GetListAndView(GetListAndViewRequest request) at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListsService.ListsSoapClient.GetListAndView(String listName, String viewName) at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.Adapter.ListsAdapter.GetSharePointList(String listName, String viewId) at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.Adapter.ListsAdapter.GetSharePointFields(String listName, String viewId) at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListServiceUtility.GetFields(Uri sharepointUri, NetworkCredentialcredentials, String listName, String viewName) at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListDestination.GetAccessibleSharePointColumns(String sharepointUrl, String listName, String viewName) at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListDestination.ValidateSharePointColumns() at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListDestination.Validate() at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostValidate(IDTSManagedComponentWrapper100 wrapper)End ErrorError: 2012-01-04 10:54:51.26Code: 0xC0047017Source: Task 35 c- Exportof datato  dataentry sharepoint list SSIS.Pipeline

 

Description: component "SharePoint List Destination 1"(251) failed validationand... The package execution fa... The step failed.


SSIS task failed to load(Script task)

$
0
0

Hi,

I am running a SSIS package using a bat file. When I run the bat file it gives the error ,'The task has failed to load.The contact information for the task is " " '. Can you let me know how to resolve this?

I am running this on Sql server 2008 . I have seen previous posts with same error saying, the problem is with the installation of SQL Server .What components should I install additionally or what are the components that did not install correctly?

Thanks

Multiple Expressions in Precedence Constraints

$
0
0

Is it possible in a precedence constraint to have multiple expressions evaluated?  IE

 

Operation set to Expression and expression to evaluate is: @File = x or @File = y

 

 

Thanks

Question about ASP.Net C# and SSIS

$
0
0

For a new project I am looking at creating a windows application which is able to programatically call multiple SSIS packages.

This will be using the following -

  • ASP.Net 4.0
  • SQL 2012
  • Text files on various servers as source files
  • SQL tables as source information

Are there any pitfalls or common problems I need to be aware of?

Also - what is the standard method for finding out execution progress from the .Net application? I have seen suggestions about using logging to an SQL database within the SSIS package to get where the package is up too.

Connection Error to MySql in SSIS

$
0
0

I have a process that copies data from a MySql database to Oracle,When I run the job, I get the following error:

Message
Executed as user: ****\OLAPAdmin. Microsoft (R) SQL Server Execute Package Utility
Version 10.50.1600.1 for 64-bit  Copyright (C) Microsoft Corporation 2010. All rights reserved.
Started:  10:11:02 AM  Error: 2012-12-17 10:11:04.93
Code: 0xC0047062     Source: Personel Personal [1]
Description: Microsoft.SqlServer.Dts.Runtime.DtsCouldNotCreateManagedConnectionException:
Could not create a managed connection manager.
at Microsoft.SqlServer.Dts.Runtime.ManagedHelper.GetManagedConnection(String assemblyQualifiedName,
String connStr, Object transaction)
at Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSConnectionManager100.AcquireConnection(Object pTransaction)
at Microsoft.SqlServer.Dts.Pipeline.DataReaderSourceAdapter.AcquireConnections(Object transaction)
at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.
HostAcquireConnections(IDTSManagedComponentWrapper100 wrapper, Object transaction)
End Error  Error: 2012-12-17 10:11:04.93     Code: 0xC0047017     Source: Personel SSIS.Pipeline
Description: component "Personal" (1) failed validation and returned error code 0x80131500.
End Error  Error: 2012-12-17 10:11:04.93     Code: 0xC004700C
Source: Personel SSIS.Pipeline     Description: One or more component failed validation.
End Error  Error: 2012-12-17 10:11:04.93     Code: 0xC0024107     
Source: Personel      Description: There were errors during task validation.
End Error  DTExec: The package execution returned DTSER_FAILURE (1).  
Started:  10:11:02 AM  Finished: 10:11:04 AM  Elapsed:  1.981 seconds.
The package execution failed.  The step failed.
Viewing all 24688 articles
Browse latest View live


Latest Images