dbTalk Databases Forums  

dts problem urgent

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


Discuss dts problem urgent in the microsoft.public.sqlserver.dts forum.



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

Default dts problem urgent - 02-14-2004 , 04:05 AM






hi

source tabl
state yr2002 yr200
-----------------------
Andhra 1000 150
Karnataka 2000 180
Tnadu 3000 100
Kerala 2000 300

I want destination table thi

State year noofcontract
---------------------------
Andhra 2002 100
Andhra 2003 180

How can i transform it through activex scripting ? pls help me

thanks in advanc

ns rao

---
Posted using Wimdows.net NntpNews Component - Posted from SQL Servers Largest Community Website: http://www.sqlJunkies.com/newsgroups/

Reply With Quote
  #2  
Old   
Russel Loski, MCSD
 
Posts: n/a

Default RE: dts problem urgent - 02-16-2004 , 01:51 PM






Why not simple T-SQL as the source in a data transformation query

Select distinct State, 2002 as [Year], yr2002 as noofcontact
from [source table
union
select distinct State, 2003 yr2003
from [source table


Reply With Quote
  #3  
Old   
nsrao
 
Posts: n/a

Default re: RE: dts problem urgent - 02-17-2004 , 01:01 AM




hi

thanks for reply .. i can't use union because my source table contains nearly 1million records.. (this i gave just as example) ..so if i use union clause it results in full table scan of twise which will considerably take much time..

is there any other solution

Thanks in advanc

ns rao

---
Posted using Wimdows.net NntpNews Component - Posted from SQL Servers Largest Community Website: http://www.sqlJunkies.com/newsgroups/

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.