dbTalk Databases Forums  

Lookup from text file

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


Discuss Lookup from text file in the microsoft.public.sqlserver.dts forum.



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

Default Lookup from text file - 09-12-2005 , 07:00 PM






I have a text file I want to import, it has a column containing a name
of a room. Now I want to import it but I want the ID of that room to
be inserted and not the name. So I create a transform data task for
the textfile to the table and try to define a lookup.

I do:

select RO_ID from rooms where RO_Name = Col007

This doesn't work, how do I reference the columns of the text file?


Thanks in advance,

Stijn Verrept.

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

Default Re: Lookup from text file - 09-13-2005 , 12:09 AM






So your text file is the source and what is the lookup source?

Have a look at this

How to Use Lookups in DTS
(http://www.sqldts.com/default.aspx?277)


"Stijn Verrept" <stjin (AT) entrysoft (DOT) com> wrote


Quote:
I have a text file I want to import, it has a column containing a name
of a room. Now I want to import it but I want the ID of that room to
be inserted and not the name. So I create a transform data task for
the textfile to the table and try to define a lookup.

I do:

select RO_ID from rooms where RO_Name = Col007

This doesn't work, how do I reference the columns of the text file?


Thanks in advance,

Stijn Verrept.


Reply With Quote
  #3  
Old   
Stijn Verrept
 
Posts: n/a

Default Re: Lookup from text file - 09-13-2005 , 03:31 AM



Allan Mitchell wrote:

Quote:
So your text file is the source and what is the lookup source?

Have a look at this

How to Use Lookups in DTS
(http://www.sqldts.com/default.aspx?277)
Thanks for the reply. The lookup source is a table in the sql
database. I checked the link you gave me, when I want to use lookup do
I need to use ActiveX?


Reply With Quote
  #4  
Old   
Stijn Verrept
 
Posts: n/a

Default Re: Lookup from text file - 09-13-2005 , 04:12 AM



Found it thanks! The link got me on the way .

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.