![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all, I am really new to DTS programming so I need some help. I have a DTS package on my SQL Server with a dynamic property on it which i want to use to specify the path of my source file. HOW.. in code (VB.NET), do I execute my DTS package passing in a new value for my dynamic property. For argument lets say my variable in my DTS package is called @strFilePath ![]() Please help!! I haven't written any code for this because I don't know where to start. cheers Kerr *** Sent via Developersdex http://www.developersdex.com *** |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
I do not use VB.NET, however, if you know how to pass a Command line in .NET then use the following DTSRUN /S YourServerSame /E /N"YourPackageName" /A"YourGlobalVariable":8="@strFilePath" Also @strFilePath just has to be a global variable - no need to add it to dynamic properties. The 8 refers to data type String. Search help for 'DTSRUN Utility' to get a full listing of the data type values. Ta Paul "Kerr" wrote: Hi all, I am really new to DTS programming so I need some help. I have a DTS package on my SQL Server with a dynamic property on it which i want to use to specify the path of my source file. HOW.. in code (VB.NET), do I execute my DTS package passing in a new value for my dynamic property. For argument lets say my variable in my DTS package is called @strFilePath ![]() Please help!! I haven't written any code for this because I don't know where to start. cheers Kerr *** Sent via Developersdex http://www.developersdex.com *** |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Allen, thanks for the reply however, in my first post I clearly stated that I am new to dts programming so not too sure what to use. Plus I really do need to initialise it from code because I have dynamic variables that I need to pass from my code to the dts package. Kerr *** Sent via Developersdex http://www.developersdex.com *** |
![]() |
| Thread Tools | |
| Display Modes | |
| |