dbTalk Databases Forums  

DTS: DDQ problem

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


Discuss DTS: DDQ problem in the microsoft.public.sqlserver.dts forum.



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

Default DTS: DDQ problem - 03-01-2004 , 02:26 AM






I'm a newbie on DTS.

i 'm having a access mdb with two columns one is "old_member_id" and the
other one is "new_member_id" I want to use this MDB to update the SQL table
by using the DTS: DDQ, but the problem is the member_id in the SQL's table
is a primary key. below is the code that I am using ..

Function Main()
DTSDestination("member_id") = DTSSource("old_member_id")
DTSDestination("member_id") = DTSSource("new_member_id")
Main = DTSTransformStat_UpdateQuery
End Function

UpdateQuery defined as :

update tb_redeem set member_id=? where member_id=?
with parameter1 points to member_id and parameter2 points to memebr_id

after I started the DTS it seems nothing happens and ended without any
error, but no records affected.

Please help, many thanks.


-Wing



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.