dbTalk Databases Forums  

Storedprocedure in Data pump task as a lookup

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


Discuss Storedprocedure in Data pump task as a lookup in the microsoft.public.sqlserver.dts forum.



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

Default Storedprocedure in Data pump task as a lookup - 03-05-2005 , 07:41 PM






Is i possible to call an insert stored procedure while I am transforming
records using Data pump task (in my activex).According to this example ,I
should be able to do it ,but It dosen't work for me.
http://www.databasejournal.com/featu...le.php/1459171
Thanks



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

Default Re: Storedprocedure in Data pump task as a lookup - 03-06-2005 , 03:24 AM






Ray

Remember that lookups execute for EVERY row so you may be incurring a
whole load of IO that may not be necessary. You do not say what syntax
you have tried and any errors you have returned.

Allan

"RayAll" <RayAll (AT) microsft (DOT) com> wrote


Quote:
Is it possible to call an insert stored procedure while I am transforming
records using Data pump task (in my activex).According to this example ,I
should be able to do it ,but It dosen't work for me.
http://www.databasejournal.com/featu...le.php/1459171
Thanks


Reply With Quote
  #3  
Old   
RayAll
 
Posts: n/a

Default Re: Storedprocedure in Data pump task as a lookup - 03-06-2005 , 01:52 PM



Allan,

Firstly I got it working. apparently when there is more than one paramter in
Execute(0 method of a Lookup ,you must either remove parantheses or use the
word **Call** in front of the lookup:
Call ErrorLog (DTSLookups("Error_StatusLookup").Execute(1),1,55, "Unknown",5)

Secondly : I kind of need to call stored procedure ,because I have to log
the error that just occured in each row in a seperated table,I can use a
simple insert into in my lookup,do you think it's better than calling stored
procedure in my lookup?

Thanks


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
Ray

Remember that lookups execute for EVERY row so you may be incurring a
whole load of IO that may not be necessary. You do not say what syntax
you have tried and any errors you have returned.

Allan

"RayAll" <RayAll (AT) microsft (DOT) com> wrote


Is it possible to call an insert stored procedure while I am transforming
records using Data pump task (in my activex).According to this example ,I
should be able to do it ,but It dosen't work for me.
http://www.databasejournal.com/featu...le.php/1459171
Thanks




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

Default Re: Storedprocedure in Data pump task as a lookup - 03-06-2005 , 02:01 PM



There will be no difference really in either method.


"RayAll" <RayAll (AT) microsft (DOT) com> wrote


Quote:
Allan,

Firstly I got it working. apparently when there is more than one paramter in
Execute(0 method of a Lookup ,you must either remove parantheses or use the
word **Call** in front of the lookup:
Call ErrorLog (DTSLookups("Error_StatusLookup").Execute(1),1,55, "Unknown",5)

Secondly : I kind of need to call stored procedure ,because I have to log
the error that just occured in each row in a seperated table,I can use a
simple insert into in my lookup,do you think it's better than calling stored
procedure in my lookup?

Thanks


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:u3A0o2iIFHA.1304 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Ray

Remember that lookups execute for EVERY row so you may be incurring a
whole load of IO that may not be necessary. You do not say what syntax
you have tried and any errors you have returned.

Allan

"RayAll" <RayAll (AT) microsft (DOT) com> wrote


Is it possible to call an insert stored procedure while I am transforming
records using Data pump task (in my activex).According to this example ,I
should be able to do it ,but It dosen't work for me.
http://www.databasejournal.com/featu...le.php/1459171
Thanks



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.