Solved

Lookup

Posted on 2004-09-27
8
325 Views
Last Modified: 2012-06-21
Hi,

I use this for a single input lookup:
DTSDestination("myID") = DTSLookups("lkID").Execute(DTSSource("DBNum"))

My question is, how can I code it so that it can take two parameters?  Thx
0
Comment
Question by:mcrmg
  • 5
  • 3
8 Comments
 
LVL 34

Accepted Solution

by:
arbert earned 120 total points
ID: 12164831
Make sure the lookup query accepts to parms and just code them on the execute:

DTSDestination("myID") = DTSLookups("lkID").Execute(DTSSource("DBNum"),DTSSource("value2"))
0
 

Author Comment

by:mcrmg
ID: 12165202
So, it is just like sending parameters in Source tab in ActiveX.  Everything must be in order?

ex.  Select * from myTable Where A=? and B = ?

DTSDestination("myID") = DTSLookups("lkID").Execute(DTSSource("DBNum"),DTSSource("value2"))
0
 
LVL 34

Expert Comment

by:arbert
ID: 12165287
Exactly...
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:mcrmg
ID: 12168213
I tried that, I make sure that lookup can take 2 parameters..

But I got this err:


Invalid procedure call or argument:"DTSSource"
0
 
LVL 34

Expert Comment

by:arbert
ID: 12169259
Works fine for me.  On your AxtiveX transformation,  make sure on the "source columns" tab that you have selected all the columns used for the lookup--if you only have the one column selected you will receive this error.

Brett
0
 
LVL 34

Assisted Solution

by:arbert
arbert earned 120 total points
ID: 12169267
Also, here is the MS link on the subject with some good examples :

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dtssql/dts_addf_misc_2dix.asp


Brett
0
 

Author Comment

by:mcrmg
ID: 12169982
Thanks...got that
0
 
LVL 34

Expert Comment

by:arbert
ID: 12170018
Good deal!

Brett
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how the fundamental information of how to create a table.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question