Link to home
Start Free TrialLog in
Avatar of dprice7
dprice7

asked on

activex script in DTS

Hello,

How would I create a counter in an activex script.

For instance I would like to have a variable called counter and increment it.

Dim counter= 0

DTSDestination("fielda")= counter + 1

What I get now is the all records have a 1 instead of incremented value.


I would like fielda to contain the new value for each row read.

thanks in advance,

Don

ASKER CERTIFIED SOLUTION
Avatar of Anthony Perkins
Anthony Perkins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nmcdermaid
nmcdermaid

If you're interested there may be a way to do this without code using an IDENTITY field.
Avatar of dprice7

ASKER

I want to split the points so I can split them.