[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Setting DTS FTP SourceFileName property with Dynamic Properties task

Posted on 2004-03-30
7
Medium Priority
?
612 Views
Last Modified: 2010-07-27
Using a DTS package I am working on the ability for a client to upload a file to the web server. From the SQL server the DTS package will FTP the file from the web server and then pump the text file data into a table that will be used to verify data in another database table.

I am having difficulty setting the SourceFileName property for the FTP task in a DTS package. I believe I am using the correct format to set the property. Below is the SQL querry used in setting a global variable inside of a SQL Execute Task (SourceFileName).

SELECT TOP 1 OrgID,
 ''''+VerifyFileName+''''+';''e:\webs\dev.10kaday.com\admin\VerificationFiles\'';''50''' as SourceFileName,
 'e:\files\10kaday\VerificationFiles\'+VerifyFileName as DestinationFileName,
 'e:\files\10kaday\VerificationFiles'  as DestinationDirName
FROM tblVerifyOrgData
WHERE Complete <> 1

The global variable is then used in a Dynamic Properties task to set the SourceFileName property of the FTP Task. All Tasks are serially connected with On Completion Work Flow type.

The FTP task completes but there is no file. When viewing the property it appears to be set correctly after executing the package. The next Task fails which is a Transform Data Task that uses the Data Pump to pump data from the FTP'd text file to a db table.
0
Comment
Question by:kwallenbeck
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 14

Expert Comment

by:adwiseman
ID: 10714465
Have you attempted to execute each step 1 step at a time, and review the results of each step?  by right clicking the task in enterprise manager you can execute it manualy.  Then check that the correct results occured.
0
 

Author Comment

by:kwallenbeck
ID: 10714531
Yes, I have completed this simple check. Although I question whether this will always provide a good check since the properties of tasks are generated dynamically.

Thank you for your reply.
0
 
LVL 14

Expert Comment

by:adwiseman
ID: 10714730
After executing the dynamic properties task, or the tasks that finaly set the properties.  Go into the properties window of that task and see that it was changed correctly.
0
 

Author Comment

by:kwallenbeck
ID: 10715041
After running the DTS package I have checked the properties of the FTP Task and the properties all appear to be set correctly. I manually set the FTP and ran the package and the FTP Task did work. I looked at the properties of the manually set FTP Task against the dynamically set FTP Task properties and they appear to be set correctly with the Dynamic Properties Task.  Althought the file does not get uploaded. I'm wondering if they get set too late in the process somehow.
0
 
LVL 14

Accepted Solution

by:
adwiseman earned 2000 total points
ID: 10715812
the property needs to get set as soon as possible, and the ftp connection object can not be changed once it is used once.  Your not looping, or using the ftp connection for more than this one task?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question