dbTalk Databases Forums  

Trasnformation SQL 2k

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


Discuss Trasnformation SQL 2k in the microsoft.public.sqlserver.dts forum.



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

Default Trasnformation SQL 2k - 09-16-2006 , 08:46 PM






Hi, I need to know how can i transform a value to a letter:
It goes from a DB to another...
Ex: if 0 to 30 = A, if 31 to 60 =B
anyone can help me please?
Thanks a lot

Reply With Quote
  #2  
Old   
Charles Kangai
 
Posts: n/a

Default RE: Trasnformation SQL 2k - 09-27-2006 , 10:41 AM






Use an ActiveX transformation, and do something like:

DTSDestination("MyDestinationCol") = chr(DTSSource("MySourceCol")\30 + 65)

Charles Kangai, MCT, MCDBA
Author of Learning Tree's 4-day course: "SQL Server 2005 Integration
Services" http://www.learningtree.com/courses/134.htm
Author of Learning Tree's 4-day course: "SQL Server Reporting Services"
http://www.learningtree.com/courses/523.htm
email alias: charles
email domain: kangai.demon.co.uk


"Enrico" wrote:

Quote:
Hi, I need to know how can i transform a value to a letter:
It goes from a DB to another...
Ex: if 0 to 30 = A, if 31 to 60 =B
anyone can help me please?
Thanks a lot

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.