![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a DTS that updates 2 tables from a VB6 application or from text files stored on the server . I am executing the DTS from a Visual Basic project using the code below Dim oPkg As New DTS.Package oPkg.LoadFromSQLServer ServerName:="ServerName", ServerUserName:="UserName", ServerPassword:="ServerPassword", PackageName:="DTS Package Name" oPkg.GlobalVariables.Item(1).Value = "Value" oPkg.Execute This is working fine, however the DTS package also runs as a Scheduled Task to import txt files uploaded by our clients. How can i dectect if the DTS is already running, or can i have two instances of the DTS running with both using different values for the Global varaibles? |
#3
| |||
| |||
|
|
-----Original Message----- I have a DTS that updates 2 tables from a VB6 application or from text files stored on the server . I am executing the DTS from a Visual Basic project using the code below Dim oPkg As New DTS.Package oPkg.LoadFromSQLServer ServerName:="ServerName", ServerUserName:="UserName", ServerPassword:="ServerPassword", PackageName:="DTS Package Name" oPkg.GlobalVariables.Item(1).Value = "Value" oPkg.Execute This is working fine, however the DTS package also runs as a Scheduled Task to import txt files uploaded by our clients. How can i dectect if the DTS is already running, or can i have two instances of the DTS running with both using different values for the Global varaibles? . |
#4
| |||
| |||
|
|
-----Original Message----- Hi Peter, I'm actually trying to import excel files via DTS and was wondering whether the text files you import have the same structure all the time or do you create the DTS packages dynamically with COM, if you do can you show me how you do it, I'm having a lot of problems creating DTS packages with COM since my file structure changes all the time. I'm not even sure whether I should create these packages since I will probably not be able to reuse them, really not sure what I should do. Any help would be great and appreciated. Thanks a lot! -----Original Message----- I have a DTS that updates 2 tables from a VB6 application or from text files stored on the server . I am executing the DTS from a Visual Basic project using the code below Dim oPkg As New DTS.Package oPkg.LoadFromSQLServer ServerName:="ServerName", ServerUserName:="UserName", ServerPassword:="ServerPassword", PackageName:="DTS Package Name" oPkg.GlobalVariables.Item(1).Value = "Value" oPkg.Execute This is working fine, however the DTS package also runs as a Scheduled Task to import txt files uploaded by our clients. How can i dectect if the DTS is already running, or can i have two instances of the DTS running with both using different values for the Global varaibles? . . |
![]() |
| Thread Tools | |
| Display Modes | |
| |