Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 SSIS and Import/Export (2012)
 ftp task help

Author  Topic 

Hommer
Aged Yak Warrior

808 Posts

Posted - 2014-05-01 : 14:16:09
Hi,

Could someone point me to an example of how to setup a local file path?

It needs to be dynamic. it is going to be C:\something.txt in dev environment, and D:\dir\something.txt in deployed production.

The file name and location are both known, and it is only one file.

However, the locations under development and production are different.

I tried parameterize..., and FTP Task Editor, File Transfer LocalPath parameter, both none of them worked.

I am in vs2012 (SSDT?). It seems have a lot of changes from 2008R2.

Thanks!

Hommer
Aged Yak Warrior

808 Posts

Posted - 2014-05-02 : 11:19:49
I got it to work by adding a step to copy the file first, so the location at the server of the source file is the same as my development.

It seems in the new 2012 world, there are more ways to customize things, but that came with the complexity and the difficulty to make it work.


Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2014-05-09 : 05:55:36
You could simply parameterise the file path property and pass values to it by creating environment variables for Dev, production etc in SSIS catalog.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -