dbTalk Databases Forums  

Execute SQL Task Vs Transformations in SSIS

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Execute SQL Task Vs Transformations in SSIS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
SD
 
Posts: n/a

Default Execute SQL Task Vs Transformations in SSIS - 10-24-2006 , 04:06 PM






I have a DTS package which I am planning to re-write in SSIS. One of the
tasks in dts package is a "Execute SQL Task" which has the following code:

SELECT
a.Column1,
LTRIM(a.column2) as column2,
a.column3,
ISNULL(a.column4, '001') as column4,
ISNULL(b.lkp_column5,'46') as column5,
ISNULL(c.lkp_column6, 4) as column6,
a.Column1 as column7
INTO Table_D
FROM Table_A A
LEFT OUTER JOIN Table_B B
ON A.Column1 = B.Column1
LEFT OUTER JOIN Table_C C
ON A.Column8 = C.column8


In SSIS, should I continue using the same code in Execute SQL Task or will
using Transformations in Data Flow task be more beneficial? Table_D will be
used in the same package to further create reporting tables with aggregations.

If I should be using Transformations then probably I'll need to use 2 Lookup
Transformations for Tables B and C, right? How will I then take care of the
NULLS (columns 4-6) and the leading spaces (column2)?


Your response shall be highly appreciated.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.