all groups > sql server dts > september 2005 >
You're in the

sql server dts

group:

unknown (changing) column names in DTSSource


unknown (changing) column names in DTSSource swasheck NO[at]SPAM gmail.com
9/28/2005 7:27:56 AM
sql server dts:
I was wondering if it is possible to do something like this:

Dim ColName = "username"
Dim SomeVar

SomeVar = DTSSource(ColName)


Does anyone know if it is?

Thanks in advance for your help.
Re: unknown (changing) column names in DTSSource Allan Mitchell
9/28/2005 2:54:44 PM
Where do you want to do this?
What are you going to do with it is you can do it?

Surely you would not want to assign the name from a variable like this
so perhaps a Global variable would be more appropriate?


I will presume the DataPump task. This would seem to work fine.


dim ColumnName

ColumnName = "ContactID"


DTSDestination("ContactID") = DTSSource(ColumnName)


Main = DTSTransformStat_OK


Allan





[quoted text, click to view]
AddThis Social Bookmark Button