dbTalk Databases Forums  

Use Transform Data Task to load .xls to Informix DB

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


Discuss Use Transform Data Task to load .xls to Informix DB in the microsoft.public.sqlserver.dts forum.



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

Default Use Transform Data Task to load .xls to Informix DB - 09-21-2004 , 02:18 PM






I am developing my first package and need load a .xls file into a
table in an Informix database.

Everything looks straightforward except one of the columns in the
primary key of the table is not in the spreadsheet. I need to add a
constant value (a date) in that column. I can not find a way to do
this using a Transform Data Task. What is the best way to accomplish
this?

Any help would be greatly appreciated.
Thanks
David

Reply With Quote
  #2  
Old   
Migue Salles
 
Posts: n/a

Default RE: Use Transform Data Task to load .xls to Informix DB - 09-21-2004 , 02:49 PM






Hi David,

I'm not a experienced user, however I think that maybe you can create a new
activeX script transformation ( tranformations tab click new), there you'll
set no source column nut a destination column (your date column) now, on this
activeX Script, you should be able to set the destination column to any value
you want.

I would use a global variable to send the date via parameter, but I don't
know if this is need.

Hope I helped ya

Miguel Salles

"David" wrote:

Quote:
I am developing my first package and need load a .xls file into a
table in an Informix database.

Everything looks straightforward except one of the columns in the
primary key of the table is not in the spreadsheet. I need to add a
constant value (a date) in that column. I can not find a way to do
this using a Transform Data Task. What is the best way to accomplish
this?

Any help would be greatly appreciated.
Thanks
David


Reply With Quote
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Use Transform Data Task to load .xls to Informix DB - 09-21-2004 , 03:55 PM



If you want to use a constant then you could easily

Select the destination field in the Transformations tab (Make sure it is the
only one selected

New | Active Script transform

You can then do

DTSDestination("Col Name") = "Hard Coded Value"



--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know




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.