![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm trying to figure out how to pass the same variable to the sql statement and the transaction. I tried to specify a variable in my sql syntax during the dts wizard but it didn't seem to like it. The value of the variable will be used as a column in one place and a value for a different column. What I'm looking for looks like this, where VARIABLE is the same variable I want to pass: select [results].[department], [results].[location], [results].[VARIABLE] from [results] ' Visual Basic Transformation Script ' Copy each source column to the ' destination column '************************************************* ********************** * Function Main() DTSDestination("department") = DTSSource("department") DTSDestination("location") = DTSSource("location") DTSDestination("Answer") = DTSSource("VARIABLE") DTSDestination("qid") = "VARIABLE" Main = DTSTransformStat_OK End Function -------------------------------------- Michael Haas WAN & Telecom Tech Lenape Regional High School District *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
![]() |
| Thread Tools | |
| Display Modes | |
| |