dbTalk Databases Forums  

DTS and Dynamic Properties problem

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


Discuss DTS and Dynamic Properties problem in the microsoft.public.sqlserver.dts forum.



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

Default DTS and Dynamic Properties problem - 01-14-2004 , 09:36 AM






I have a simple package which transforms data from an excel
spreadsheet into
a table in my SqlServer 2000 database. The package contains two
connections, a
dynamic properties task, and a data transform task. I have setup the
workflow so that the dynamic properties task finishes execution before
the connection to
the excel spreadsheet is made.

I've setup the dynamic properties task so that it sets the Catalog,
DataSource,
user Name and password values as well as the Excel DataSource value
from
environment variables. The settings for the Excel connection seem to
take but
the values for the DB connection are ignored. When executed, DTS
complains that
the destination for the first data pump task is invalid. The
destination listed
is the default for the DB connection.

BTW the package is executed from a DOS batch file using the DTSrun
command.

Is it possible that the db connection is being made before the dynamic
properties task is executed?

Thanks.

Jeff

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

Default Re: DTS and Dynamic Properties problem - 01-14-2004 , 10:52 AM






If the DP task is the first thing in the package and everything logically
hangs from it using workflow then it will be the first thing to fire.



--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Jeff Robinson" <jeff.robinson (AT) aquilent (DOT) com> wrote

Quote:
I have a simple package which transforms data from an excel
spreadsheet into
a table in my SqlServer 2000 database. The package contains two
connections, a
dynamic properties task, and a data transform task. I have setup the
workflow so that the dynamic properties task finishes execution before
the connection to
the excel spreadsheet is made.

I've setup the dynamic properties task so that it sets the Catalog,
DataSource,
user Name and password values as well as the Excel DataSource value
from
environment variables. The settings for the Excel connection seem to
take but
the values for the DB connection are ignored. When executed, DTS
complains that
the destination for the first data pump task is invalid. The
destination listed
is the default for the DB connection.

BTW the package is executed from a DOS batch file using the DTSrun
command.

Is it possible that the db connection is being made before the dynamic
properties task is executed?

Thanks.

Jeff



Reply With Quote
  #3  
Old   
Jeff Robinson
 
Posts: n/a

Default Re: DTS and Dynamic Properties problem - 01-14-2004 , 11:32 AM




Alan,


The DP task is the first. I have workflow defined
between the DP taks and the Excel connection. I can't
seem to create workflow for the DP - DB connection.
The DB connection is connected to the Excel connection
through a transform task. Is that good enough to ensure
that the db connection is loaded after the DP task
completes? Thanks.

Jeff



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

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

Default Re: DTS and Dynamic Properties problem - 01-14-2004 , 11:52 AM



Yes

A DataPpump exists between Excel --> SQL Server. The workflow will exist
between the Dynamic Properties task and the Excel connection.



--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Jeff Robinson" <jeff.robinson (AT) aquilent (DOT) com> wrote

Quote:
Alan,


The DP task is the first. I have workflow defined
between the DP taks and the Excel connection. I can't
seem to create workflow for the DP - DB connection.
The DB connection is connected to the Excel connection
through a transform task. Is that good enough to ensure
that the db connection is loaded after the DP task
completes? Thanks.

Jeff



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply With Quote
  #5  
Old   
Jeff Robinson
 
Posts: n/a

Default Re: DTS and Dynamic Properties problem - 01-14-2004 , 12:14 PM



Any idea why the properites aren't taking then?

The first data pump task complains that it can't find
the destination. And the destination is pointing to the
correct table in the wrong database.

Am I missing something here? Do I need to set any other
properties than the ones I mentioned in the original post?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

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

Default Re: DTS and Dynamic Properties problem - 01-14-2004 , 01:05 PM



OK

So when you look at the destination in the DataPump task what does it say
after you execute the Dynam Properties task ?

Right Click on task | Execute

Set it to something outrageous.

I think what you will see is that the DestinationObjectName is 3 part
qualified

Dbname.ownername.tablename





--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Jeff Robinson" <jeff.robinson (AT) aquilent (DOT) com> wrote

Quote:
Any idea why the properites aren't taking then?

The first data pump task complains that it can't find
the destination. And the destination is pointing to the
correct table in the wrong database.

Am I missing something here? Do I need to set any other
properties than the ones I mentioned in the original post?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



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.