Showing posts with label ssis. Show all posts
Showing posts with label ssis. Show all posts

Friday, March 23, 2012

How can I bind assemblies of DEFINITE version of SSIS dataflow component to a package.

I have several versions of one SSIS Dataflow component. I need to bind some of them( definite version) to my SSIS package. How can I do that?

Thanks in advance.

What do you mean by binding your assemblies to a package?

Thanks,

Bob

|||

Hi,

I mean that I developed a SSIS package using Dataflow components which I had developed before. The assembly of these components has version number 1.0.0.0, for instance.

After that I improved components( version 2.0.0.0, for instance) and I want to use them within the same package with components version 1.0.0.0. .

I can't put assemblies with the same name into folder \dts\pipelinescomponents\ .

Because If I replace components v. 1.x by v.2 that I will have to tune all other dataflow components again( lookups, unions and etc).

And I have to create the same component having diferent name. For example componentnameV1.dll, componentnameV2 and etc.

Does solution exist for this situation?

Thanks in advance.

|||

I think the easiest way would be to replace the component in the PipelineComponents folder and the GAC and then change the version in the package XML. You'll have to test it though as I have not tried it.

Thanks,

Bob

|||

Thank you very much for your idea. "change the version in the package XML. You'll have to test it though as I have not tried it."

I changed version in the package XML. And the package works with new version of components successfully.

How can I bind assemblies of DEFINITE version of SSIS dataflow component to a package.

I have several versions of one SSIS Dataflow component. I need to bind some of them( definite version) to my SSIS package. How can I do that?

Thanks in advance.

What do you mean by binding your assemblies to a package?

Thanks,

Bob

|||

Hi,

I mean that I developed a SSIS package using Dataflow components which I had developed before. The assembly of these components has version number 1.0.0.0, for instance.

After that I improved components( version 2.0.0.0, for instance) and I want to use them within the same package with components version 1.0.0.0. .

I can't put assemblies with the same name into folder \dts\pipelinescomponents\ .

Because If I replace components v. 1.x by v.2 that I will have to tune all other dataflow components again( lookups, unions and etc).

And I have to create the same component having diferent name. For example componentnameV1.dll, componentnameV2 and etc.

Does solution exist for this situation?

Thanks in advance.

|||

I think the easiest way would be to replace the component in the PipelineComponents folder and the GAC and then change the version in the package XML. You'll have to test it though as I have not tried it.

Thanks,

Bob

|||

Thank you very much for your idea. "change the version in the package XML. You'll have to test it though as I have not tried it."

I changed version in the package XML. And the package works with new version of components successfully.

How can I bind assemblies of DEFINITE version of SSIS dataflow component to a package.

I have several versions of one SSIS Dataflow component. I need to bind some of them( definite version) to my SSIS package. How can I do that?

Thanks in advance.

What do you mean by binding your assemblies to a package?

Thanks,

Bob

|||

Hi,

I mean that I developed a SSIS package using Dataflow components which I had developed before. The assembly of these components has version number 1.0.0.0, for instance.

After that I improved components( version 2.0.0.0, for instance) and I want to use them within the same package with components version 1.0.0.0. .

I can't put assemblies with the same name into folder \dts\pipelinescomponents\ .

Because If I replace components v. 1.x by v.2 that I will have to tune all other dataflow components again( lookups, unions and etc).

And I have to create the same component having diferent name. For example componentnameV1.dll, componentnameV2 and etc.

Does solution exist for this situation?

Thanks in advance.

|||

I think the easiest way would be to replace the component in the PipelineComponents folder and the GAC and then change the version in the package XML. You'll have to test it though as I have not tried it.

Thanks,

Bob

|||

Thank you very much for your idea. "change the version in the package XML. You'll have to test it though as I have not tried it."

I changed version in the package XML. And the package works with new version of components successfully.

sql

Wednesday, March 21, 2012

How can I append only new rows in a table using SSIS?

Hi,

Im creatting an SSIS project that uses an Data Flow OLE DB Source to read data from an SQL Table and import it into a Destination table using Data Flow OLE DB Destination. but now everytime I run the project it appends all the rows not the new data rows only. How can I make the application so that it appends only the new data from a source table to a destination table. Is there maybe another Data Flow Control that can copy source table to destination and the next time it runs it only copy new rows. or any other way to do this using SSIS.

Your assistance will be highly appreciated.

Use the Lookup component. Set it up to return the keys of the destination table. Map the keys to your input data. Then grab the red arrow coming out of the lookup and hook it up to your destination.|||

Hi Phil,

Im new to SSIS, please bear with me. I have maped the lookup component to the destination table and hook the redline out of the lookup to destination OLE DB Destination which is also mapped to a destination table. It coppies all the rows.

Please email me the sample project, my email is sibu.khanyile@.enerserv.co.za

Thank you in advance

|||Make sure that you use a derived column to TRIM() the key fields going into the lookup component. Also know that the keys must have the same CaSE as those in the destination table in order to match.

How can I append children to parents in a SSIS data flow task?

I need to extract data to send to an external agency in their supplied format. The data is normalised in our system in a one to many relationship. The external agency needs it denormalised.

In our system, the parent p has p_id, p_attribute_1, p_attribute_2, p_attribute_3 and the child has c_id, c_attribute_a, c_attribute_b, c_parent_id_fk

The external agency can only use a delimited file looking like

p_id, p_attribute_1, p_attribute_2, p_attribute_3, c1_attribute_a, c1_attribute_b, c2_attribute_a, c2_attribute_b, ...., cn_attribute_a, cn_attribute_b

where n is the number of children a parent may have. Each parent can have 0 or more children - typically between 1 and 20.

How can I achieve this using SSIS? In the past I have used custom built VB apps with the ADO SHAPE command but this is not ideal as I have to rebuild each time to alter the selection criteria and and VB is not a good SQL tool.

You can use the pivot transform to move rows to columns, but it doesn't handle a variable number of columns very well. I'd try creating a script component that outputs the set of children for a parent as one long string. Then you can append it to the parent value.|||

jwelch wrote:

You can use the pivot transform to move rows to columns, but it doesn't handle a variable number of columns very well. I'd try creating a script component that outputs the set of children for a parent as one long string. Then you can append it to the parent value.

I agree with John.

The way I would approach this is to join the parent and child records together in a SQL statement so you have a row for each parent/child combination. Use this statement in the Source of a Data Flow and run the rows into an asynchronous script transformation component. You'll write code in the script to denormalize the incoming rows into a single output row for each parent. SSIS won't adapt to having an arbitrary number of child columns and I don't think there is a need for it. The output of the script should be a single column (string if it can fit, otherwise text) that is already delimited and can go directly into a flat file destination.

So the script is the only tricky part. It will look at the p_id on each row it receives to determine if this is the same parent as the last input row. If it isn't, then it will write the output row it was working on for the previous p_id to the output and start a new one by appending the p_id and parent and child attributes to a string. If it is the same p_id, it will continue to append the child attributes until it sees the next p_id or the last row.

Something like this oughta do it:

Code Snippet

Public Class ScriptMain
Inherits UserComponent

Dim last_pid As Integer = -1
Dim current_row As StringBuilder = Nothing

Public Overrides Sub FinishOutputs()
' the input is finished, flush the current row
WriteRow()
End Sub

Public Sub WriteRow()
If Not current_row Is Nothing Then
With Output0Buffer
.AddRow()
.OutputLine = current_row.ToString()
' if we use a dt_text column
'.OutputLine.AddBlobData(ASCIIEncoding.ASCII.GetBytes(current_row.ToString()))
End With
End If

End Sub

Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer)
'
' Add your code here
'
If Row.pid <> last_pid Then

' this is a new p_id starting, write the previous one to the output
WriteRow()

' remember this pid for future rows
last_pid = Row.pid

' create new buffer
current_row = New StringBuilder()
' append parent attributes
With current_row
.Append(Row.pid.ToString())
.Append(",")
.Append(Row.pattribute1)
.Append(",")
.Append(Row.pattribute2)
.Append(",")
.Append(Row.pattribute3)
End With
End If

' append child attributes
With current_row
.Append(",")
.Append(Row.cattributea)
.Append(",")
.Append(Row.cattributeb)
End With
End Sub

End Class


Note: The JOIN should group all of the parents together, but just in case you should probably throw an ORDER BY p_id in for that SQL statement.

|||

Phew. I went out 2 hours ago with the express purpose of coming back and answering this but John and Jay have beaten me to it Smile

I was going to suggest exactly what Jay has said. Its kind of hobson's choice on this one - the metadata is unknown at design-time therefore you HAVE to have a single column with all the values concatenated. The fact that you are outputting to a file means that it really doesn't matter anyway.

I would add that this would be a great candidate for a custom component if you can be bothered to build it.

-Jamie

How can i achieve the functionality of External Procedure Transformation(Informatica) in SSIS

Hi,

I worked with informatica before and bit new to SSIS,

i have one simple question..

How can i achieve the same functionality as External Procedure Transformation (Informatica) in SSIS?

like..i want to use a DLL in my package which contains some set of business rules.

Please let me know.

Charles

Charles Luke wrote:

Hi,

I worked with informatica before and bit new to SSIS,

i have one simple question..

How can i achieve the same functionality as External Procedure Transformation (Informatica) in SSIS?

like..i want to use a DLL in my package which contains some set of business rules.

Please let me know.

Charles

Charles,

Its possible to build your own custom tasks and compoenents that implement whatever business rules you require. Go here in BOL for more info:

Integration Services Developer InfoCenter
(http://msdn2.microsoft.com/en-us/library/ms137709.aspx)

You may also wish to look at using the script component and script task. They also enable you to incorporate your own business rules however they are not as portable as custom tasks or custom components. But they ARE easier to build than custom tasks/components.

-Jamie

How can i achieve the functionality of External Procedure Transformation(Informatica) in SSI

Hi,

I worked with informatica before and bit new to SSIS,

i have one simple question..

How can i achieve the same functionality as External Procedure Transformation (Informatica) in SSIS?

like..i want to use a DLL in my package which contains some set of business rules.

Please let me know.

Charles

Charles Luke wrote:

Hi,

I worked with informatica before and bit new to SSIS,

i have one simple question..

How can i achieve the same functionality as External Procedure Transformation (Informatica) in SSIS?

like..i want to use a DLL in my package which contains some set of business rules.

Please let me know.

Charles

Charles,

Its possible to build your own custom tasks and compoenents that implement whatever business rules you require. Go here in BOL for more info:

Integration Services Developer InfoCenter
(http://msdn2.microsoft.com/en-us/library/ms137709.aspx)

You may also wish to look at using the script component and script task. They also enable you to incorporate your own business rules however they are not as portable as custom tasks or custom components. But they ARE easier to build than custom tasks/components.

-Jamie

Friday, March 9, 2012

How are you documenting your ETL processes

I'm currently using SSIS on a fairly large project. I wanted to know how
other developers are documenting their ETL processes. I've started using
Visio for flow charting some of my ETL processes. But I am finding it
difficult to use.
So, What tools/products are you using and are they working for you.
Thanks,
GHC.
(Feel free to post samples!)
Get Bi Documenter
http://www.bidocumenter.com/Public/Download.aspx

How are you documenting your ETL processes

I'm currently using SSIS on a fairly large project. I wanted to know how
other developers are documenting their ETL processes. I've started using
Visio for flow charting some of my ETL processes. But I am finding it
difficult to use.
So, What tools/products are you using and are they working for you.
Thanks,
GHC.
(Feel free to post samples!)Get Bi Documenter
http://www.bidocumenter.com/Public/Download.aspx

Sunday, February 19, 2012

hosting SSIS packages where?

After i create a SSIS package, where can i put it or store it in the SQL SERVER 2005 so that i can execute it later on?

You can execute dtsx file directly or use dtexec command

It's better using Agent Job,and define schedule

|||

You could stored (I'm not wrong) it in three different places:

In the SSIS File System

In MSDB

In FAT/NTFS

You can execute a SSIS from a job, .net framework 2.0 code, VbScript, with DTEXECUI, etc..

|||Hi,

The option to do this is available once you have built you're project and you have done this whilst the CreateDeploymentUtility is True. All you then have to do is go to the deployment folder (usually in the bin directory) and run the .SSISDeploymentManifest file. This will give you all deployment options including where to store your package.

This link gves some info on how to execute the packages programmatically:

http://msdn2.microsoft.com/en-us/library/ms403355.aspx

Hope this is of use to you.

Cheers,

Grant|||

Grant Swan wrote:

Hi,

The option to do this is available once you have built you're project and you have done this whilst the CreateDeploymentUtility is True. All you then have to do is go to the deployment folder (usually in the bin directory) and run the .SSISDeploymentManifest file. This will give you all deployment options including where to store your package.

This link gves some info on how to execute the packages programmatically:

http://msdn2.microsoft.com/en-us/library/ms403355.aspx

Hope this is of use to you.

Cheers,

Grant

I don't understand what you just said... You can just upload a package to SQL Server (MSDB, SSIS File System, etc...) and execute it there via a number of methods. Some of those methods require that you have Integration Services installed on your local computer.|||He informing the poster that he can use the deployment utility to deploy his packages, and it will show him the different options available.|||

As I'm still coming up to speed on SSIS and have only worked with it for a couple of months, I can only speak of my own first hand experience. Others may take other approaches that are easier/better/simpler, etc.

First, I find that developing SSIS packages in the Business Intelligence/Visual Studio environment seems to work better when using the Visual Studio project/solution approach with the packages stored on a local development machine's hard disk. During this develop/test period I usually select the option to encrypt the package(s) with user credentials.

Then, when I've completed my development and testing and I'm ready to run the packages from SQL Server Agent for instance, I use the Save Copy As functionality to save the individual .dtsx packages to SQL Server. This Save Copy As functionality gets a little tricky to find as the option is only available when the package is open and a designer is actively selected. I do this mainly to remove dependencies on a particular user's credentials or a particular password, etc. from the security mix that is involved in getting these packages to run correctly from SQL Server Agent, etc. While I am using the Save Copy As functionality, to save it to SQL Server rather than the file system, one of the options presented is to change the security model for the package from encrypt with user credentials to that of letting SQL Server manage the security thru roles and permissions functionality inherent is SQL Server.

This works well for me in a design,program, test, deploy environment as it lets me make clear delineations between packages at the various stages, etc.

Hope this helps.

Steve Wells

|||

I got an error

"An OLE DB error 0x80004005 (unable to complete login process due to delay in opening server connection) occurred while enumerating packages. A SQL statement was issued and failed."

The below is my config:

Package location : SQL server

Server : Computer Name

USERNAME: < sql server login >

PASSWORD: <sql server pass>

package path: <I cannot select!! I got the above error>