dbTalk Databases Forums  

cant assign filename in DTS

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss cant assign filename in DTS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ChrisR
 
Posts: n/a

Default cant assign filename in DTS - 11-09-2004 , 11:10 AM






Ive got a dts package that:

Has a string Global Variable.

In an active X Script, opens a message box to accept a file path and name.

In a Dynamic Props Task, assigns that file path and name to the Global
Variable.

Imports data from a .txt file into an SQL table.

So in this particular package, the filename and path are fed in at time of
execution. Its been working for quite some time.

But now Im trying to create another package that does the same thing and its
not working. It keeps pointing to the original file that was used the first
time even though I put the new file name in at time of execution. I can
verify that the file name is being assigned properly by looking in the
Dynamic Props Task/ Edit/ Connections/ OLE DB Props/ Data Source/ Set/
Preview tab. But still, it points to the old file.

All idas are appreciated.

--
SQL2K SP3

TIA, ChrisR



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: cant assign filename in DTS - 11-09-2004 , 03:03 PM






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.
www.Konesans.com


"ChrisR" <bla (AT) noemail (DOT) com> wrote

Quote:
Ive got a dts package that:

Has a string Global Variable.

In an active X Script, opens a message box to accept a file path and name.

In a Dynamic Props Task, assigns that file path and name to the Global
Variable.

Imports data from a .txt file into an SQL table.

So in this particular package, the filename and path are fed in at time of
execution. Its been working for quite some time.

But now Im trying to create another package that does the same thing and
its
not working. It keeps pointing to the original file that was used the
first
time even though I put the new file name in at time of execution. I can
verify that the file name is being assigned properly by looking in the
Dynamic Props Task/ Edit/ Connections/ OLE DB Props/ Data Source/ Set/
Preview tab. But still, it points to the old file.

All idas are appreciated.

--
SQL2K SP3

TIA, ChrisR





Reply With Quote
  #3  
Old   
ChrisR
 
Posts: n/a

Default Re: cant assign filename in DTS - 11-09-2004 , 03:42 PM



Where would I find that option? I went to Package/ Props and its not there
that I can see.



"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
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.
www.Konesans.com


"ChrisR" <bla (AT) noemail (DOT) com> wrote in message
news:ef%23%23%237nxEHA.3976 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Ive got a dts package that:

Has a string Global Variable.

In an active X Script, opens a message box to accept a file path and
name.

In a Dynamic Props Task, assigns that file path and name to the Global
Variable.

Imports data from a .txt file into an SQL table.

So in this particular package, the filename and path are fed in at time
of
execution. Its been working for quite some time.

But now Im trying to create another package that does the same thing and
its
not working. It keeps pointing to the original file that was used the
first
time even though I put the new file name in at time of execution. I can
verify that the file name is being assigned properly by looking in the
Dynamic Props Task/ Edit/ Connections/ OLE DB Props/ Data Source/ Set/
Preview tab. But still, it points to the old file.

All idas are appreciated.

--
SQL2K SP3

TIA, ChrisR







Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: cant assign filename in DTS - 11-09-2004 , 03:48 PM



Right click on the task ( the black line in the Transform Data task) and do

Workflow Properties | Options

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


"ChrisR" <bla (AT) noemail (DOT) com> wrote

Quote:
Where would I find that option? I went to Package/ Props and its not there
that I can see.



"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:u3$b29pxEHA.908 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
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.
www.Konesans.com


"ChrisR" <bla (AT) noemail (DOT) com> wrote in message
news:ef%23%23%237nxEHA.3976 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Ive got a dts package that:

Has a string Global Variable.

In an active X Script, opens a message box to accept a file path and
name.

In a Dynamic Props Task, assigns that file path and name to the Global
Variable.

Imports data from a .txt file into an SQL table.

So in this particular package, the filename and path are fed in at time
of
execution. Its been working for quite some time.

But now Im trying to create another package that does the same thing
and
its
not working. It keeps pointing to the original file that was used the
first
time even though I put the new file name in at time of execution. I can
verify that the file name is being assigned properly by looking in the
Dynamic Props Task/ Edit/ Connections/ OLE DB Props/ Data Source/ Set/
Preview tab. But still, it points to the old file.

All idas are appreciated.

--
SQL2K SP3

TIA, ChrisR









Reply With Quote
  #5  
Old   
ChrisR
 
Posts: n/a

Default Re: cant assign filename in DTS - 11-09-2004 , 03:59 PM



:-(

It was already checked.


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
Right click on the task ( the black line in the Transform Data task) and
do

Workflow Properties | Options

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


"ChrisR" <bla (AT) noemail (DOT) com> wrote in message
news:OG$KvTqxEHA.3224 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
Where would I find that option? I went to Package/ Props and its not
there
that I can see.



"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:u3$b29pxEHA.908 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
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.
www.Konesans.com


"ChrisR" <bla (AT) noemail (DOT) com> wrote in message
news:ef%23%23%237nxEHA.3976 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Ive got a dts package that:

Has a string Global Variable.

In an active X Script, opens a message box to accept a file path and
name.

In a Dynamic Props Task, assigns that file path and name to the
Global
Variable.

Imports data from a .txt file into an SQL table.

So in this particular package, the filename and path are fed in at
time
of
execution. Its been working for quite some time.

But now Im trying to create another package that does the same thing
and
its
not working. It keeps pointing to the original file that was used the
first
time even though I put the new file name in at time of execution. I
can
verify that the file name is being assigned properly by looking in
the
Dynamic Props Task/ Edit/ Connections/ OLE DB Props/ Data Source/
Set/
Preview tab. But still, it points to the old file.

All idas are appreciated.

--
SQL2K SP3

TIA, ChrisR











Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.