Forum

 
ForumForumSQLBI Component...SQLBI Component...Distinct Suppor...Distinct Suppor...sql server 2005 distinct not accessiblesql server 2005 distinct not accessible
Previous Previous
 
Next
 Disabled
New Post
 6/27/2008 4:27 PM
 
 Modified By silna  on 6/27/2008 4:33:52 PM

hi

i  could not access the distinct block as shown in ur documents . i have sucessfully reached  till commnd prompt for GACUTIL - I Distinct.dll.

i got message as assembly sucessfully added to cache 

Using Distinct  part as specified in ur  document  was not followed by me .i am a newbie and was trying for customizing of my code to .dll file.

Plz rexplain me how do i get tht distinct block added to my toolbox of data flow ssis so tht i can drag and drop wherever applicable to make the transformation as described

i have pasted the part of ur doc

plz reply

thks in advance

 

Installation

Installation is very simple:

  • copy Distinct.DLL into “<Program Files>\Microsoft SQL Server\90\DTS\PipelineComponents”
  • add the DLL to the GAC using “GACUTIL –I Distinct.DLL”

No installer for the moment… sorry.

Using Distinct

Using Distinct is straightforward: just insert the transformation where you would have used a Sort one, like in this diagram:

 

Configuring Distinct is easy as to double click on it to reach the component editor that let you choose the columns you want to use in order to take their distinct values:

 

Component signature

The component needs to have a strong name and hence a signature file. We have provided a free snk file named SqlBiFree.snk, please note that any change in the signature needs an update to the declaration of the Distinct class where you must declare the public key of the assembly to let SSIS invoke the component editor.

Final considerations

Distinct is a nice component that solves memory problem for taking distinct values from a flow. It took a single day to write it, starting from the samples provided by Microsoft. The real lesson here is that it is quite always easier to write your components when you have a specific need instead of trying to adapt the existing ones.

I am pretty sure that somebody – studying the sources – will discover a faster algorithm for detecting distinct values in a flow, in the case his/her contribution will be highly appreciated.

During more tests, Marco Russo discovered an easier and faster way to get Distinct that is to use an Aggregate component instead of a Sort one. Using aggregate memory usage is very low and the SSIS package runs faster so, at the end, the usefulness of this component is just to use it as a sample, I think I'll use Aggregate to take distincts from now on. :)

New Post
 6/27/2008 4:31 PM
 

As you can see in the final part of the document, using the Aggregate component is faster than using Distinct. If you only want to see how to develop a custom component, then remember than check if you added the component into VS.NET using the "Add Component" context menu on the toolbox area.

Marco

New Post
 6/27/2008 4:41 PM
 

hi

thks for ur reply but i m still confused

i hv been trying for custom component so in vs.net 2008  do i hv to open the .sln file and then try for whtever u hv specified ...

actually i need to see this example wking for sql server 2005 as drag nd drop .

is this possible??

any help appreciated..

 

 

New Post
 6/27/2008 4:52 PM
 

hi

thks i hv found the way for a .dll i.e being assembled using GAC to be added for sql server 2005.

its available as drag nd drop.

For this u need to configure toolbox SQL SERVER 2005 -->Right Click----> choose items .

now a small window appears displaying the list of items .

make sure u check the distinct chkbox and distinct is available for use

thks for all ur help

bye

 

Previous Previous
 
Next
 Disabled
ForumForumSQLBI Component...SQLBI Component...Distinct Suppor...Distinct Suppor...sql server 2005 distinct not accessiblesql server 2005 distinct not accessible