dbTalk Databases Forums  

Re: LOOKUP et USER DEFINED FUNCTION

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


Discuss Re: LOOKUP et USER DEFINED FUNCTION in the microsoft.public.sqlserver.dts forum.



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

Default Re: LOOKUP et USER DEFINED FUNCTION - 06-03-2004 , 02:32 AM






I have just tried to do this and whilst you can call a Function in the
Lookup it would seem if you parameterise the function as in your case then
it does not work.

A usual work around is to provide the same MetaData to the lookup in the
designer but then go to the disconnected edit setup and edit the statement
to the one you want. Even this does not seem to work though.

Can you not incorporate the function into the SELECT statement as the source
of the datapump.?

--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Oleer" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
hi

Can I use a user-defined function in a lookup.

When I try

SELECT ActifModifie
FROM opcvdbo.fnActifModifie(?) fnActifModifie
WHERE (id_ptf = ?)

I have a syntax error on the first parameter ?









Reply With Quote
  #2  
Old   
oleer
 
Posts: n/a

Default Re: LOOKUP et USER DEFINED FUNCTION - 06-03-2004 , 06:56 AM






thanks for your response

I'm going to try another 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.