Re: Changing the DataSource in a loop

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Chance are you are not closing the connection in the workflow properties
each time

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"JvCoach23" <jvcoach23@xxxxxxxxxxx> wrote in message
news:1120138657.415629.304620@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I'm trying to change the datasource for a dts package inside of a loop.
> I've created a dyanmic proprety that is housed inside the looping steps
> that has the datasource = value of a global variable. In the workflow
> active x for the dynamic properties i add a
> msgbox(DTSGlobalVariables("CurrentDSN").Value). This value changes
> each time through the loop correctly, but the datasource seems not to
> change. I am checking this by doing a step right after the dynamic
> that does a count. The count for the first value assigned is 335, the
> second time through hitting the second data source value should be 901,
> but it is 335. I am not sure what i'm doing wrong that the value
> doesn't stick.
>
> Please help
> thanks
> shannon
>


.



Relevant Pages

  • Re: Changing the DataSource in a loop
    ... else that in the workflow properties you need to tell the connection to ... > I'm trying to change the datasource for a dts package inside of a loop. ... > second time through hitting the second data source value should be 901, ...
    (microsoft.public.sqlserver.dts)
  • Re: cant assign filename in DTS
    ... Have you set "Close Connection On Completion" in the workflow properties? ... Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) ... www.SQLDTS.com - The site for all your DTS needs. ... > In an active X Script, opens a message box to accept a file path and name. ...
    (microsoft.public.sqlserver.dts)
  • Re: How to do this from DTS?
    ... If you right click on the task | Workflow | Workflow Properties ... Allan Mitchell MCSE,MCDBA, www.SQLDTS.com - The site for all your DTS needs. ... > in this same DTS job, then I drug the ActiveX Script Task from the Task> section of the DTS menu over into the designer, and put the code from the> page you had referred me to into the window in the package. ... > set pkg = DTSGlobalVariables.Parent> ...
    (microsoft.public.sqlserver.dts)
  • Re: How to do this from DTS?
    ... If you right click on the task | Workflow | Workflow Properties ... Allan Mitchell MCSE,MCDBA, www.SQLDTS.com - The site for all your DTS needs. ... > in this same DTS job, then I drug the ActiveX Script Task from the Task> section of the DTS menu over into the designer, and put the code from the> page you had referred me to into the window in the package. ... > set pkg = DTSGlobalVariables.Parent> ...
    (microsoft.public.sqlserver.programming)
  • Re: How to use a "dynamic" file name (.XLS) in the DTS as a datasource file ? URGEN
    ... You can provide to the correct connection the DataSource property of where the file will be. ... I desgined a DTS which will load .XLS file which static file name. ... allow user to "upload" the file from client machine to webserver. ...
    (microsoft.public.sqlserver.dts)