Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SSIS file archiving

 
   Database Help (Home) -> DTS RSS
Next:  levenshtein for large strings  
Author Message
mvp

External


Since: May 13, 2008
Posts: 4



(Msg. 1) Posted: Thu Oct 30, 2008 2:26 pm
Post subject: SSIS file archiving
Archived from groups: microsoft>public>sqlserver>dts (more info?)

Hello Everybody,
I do have question abt archive and deleting file from remote server using
SSIS.
I have one database server (payrollproduction) where I pull file from
another server (HRproduction). After pulling xml files to payrollproduction
from HRproduction, I want to archive those files into HRproduction(source)
in archive folder and then delete from original folder. I will run that SSIS
from payrollproduction server.
How can I do it ? Please let me know

 >> Stay informed about: SSIS file archiving 
Back to top
Login to vote
Todd C

External


Since: Jan 31, 2007
Posts: 98



(Msg. 2) Posted: Fri Oct 31, 2008 5:45 am
Post subject: RE: SSIS file archiving [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Set up a For Each loop that processes the XML file(s). Inside the loop have a
File System task that moves the processed file from one location to another.
Set the precedence constraint to only move the file if the data flow is
successful.

HTH
--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"mvp" wrote:

> Hello Everybody,
> I do have question abt archive and deleting file from remote server using
> SSIS.
> I have one database server (payrollproduction) where I pull file from
> another server (HRproduction). After pulling xml files to payrollproduction
> from HRproduction, I want to archive those files into HRproduction(source)
> in archive folder and then delete from original folder. I will run that SSIS
> from payrollproduction server.
> How can I do it ? Please let me know

 >> Stay informed about: SSIS file archiving 
Back to top
Login to vote
mvp

External


Since: May 13, 2008
Posts: 4



(Msg. 3) Posted: Fri Oct 31, 2008 6:44 am
Post subject: RE: SSIS file archiving [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yes, But I want to move file in remote server (not in the server where the
job will run). Is is possible doing by File System Task.

Thanks

"Todd C" wrote:

> Set up a For Each loop that processes the XML file(s). Inside the loop have a
> File System task that moves the processed file from one location to another.
> Set the precedence constraint to only move the file if the data flow is
> successful.
>
> HTH
> --
> Todd C
>
> [If this response was helpful, please indicate by clicking the appropriate
> answer at the bottom]
>
>
> "mvp" wrote:
>
> > Hello Everybody,
> > I do have question abt archive and deleting file from remote server using
> > SSIS.
> > I have one database server (payrollproduction) where I pull file from
> > another server (HRproduction). After pulling xml files to payrollproduction
> > from HRproduction, I want to archive those files into HRproduction(source)
> > in archive folder and then delete from original folder. I will run that SSIS
> > from payrollproduction server.
> > How can I do it ? Please let me know
 >> Stay informed about: SSIS file archiving 
Back to top
Login to vote
Todd C

External


Since: Jan 31, 2007
Posts: 98



(Msg. 4) Posted: Fri Oct 31, 2008 7:01 am
Post subject: RE: SSIS file archiving [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yes, you can use the File System task to move files on a remote server. I do
it all the time because our XML files are located on a File Server, and the
package is running on a SQL server, two different machines. You need to make
sure of a couple of things:

a) refer to the remote server with the full UNC path, not a relative drive
letter path. "\\<servername>\<sharename>" not "<drive letter>:\<foldername>"
b) the service account that runs SSIS and/or SQL agent need to have proper
permissions to perform the file operation.
and c) if you are going to build the source or destination path by using an
expression, be sure to double up the back slashes in literal stings so they
are properly escaped:
"\\\\MyServerName\\FolderName\\" + [User::FileName]

Good luck. Keep us posted.
--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"mvp" wrote:

> Yes, But I want to move file in remote server (not in the server where the
> job will run). Is is possible doing by File System Task.
>
> Thanks
>
> "Todd C" wrote:
>
> > Set up a For Each loop that processes the XML file(s). Inside the loop have a
> > File System task that moves the processed file from one location to another.
> > Set the precedence constraint to only move the file if the data flow is
> > successful.
> >
> > HTH
> > --
> > Todd C
> >
> > [If this response was helpful, please indicate by clicking the appropriate
> > answer at the bottom]
> >
> >
> > "mvp" wrote:
> >
> > > Hello Everybody,
> > > I do have question abt archive and deleting file from remote server using
> > > SSIS.
> > > I have one database server (payrollproduction) where I pull file from
> > > another server (HRproduction). After pulling xml files to payrollproduction
> > > from HRproduction, I want to archive those files into HRproduction(source)
> > > in archive folder and then delete from original folder. I will run that SSIS
> > > from payrollproduction server.
> > > How can I do it ? Please let me know
 >> Stay informed about: SSIS file archiving 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
ssis - can not open file - Hi, Using ssis, is it possible to refresh the data inside an excel file which is sitting on a separate machine (i.e. machine B) on the network? When I try this using the importy wizard, the error message is: The microdoft jet database engine can not ope...

load csv file with SSIS - I have a csv file with first 2 lines having less columns than all the rest of the lines. The first line has 6 columns, the second line has 4 columns, then all the rest of the lines have 14 columns. My destination table in sql server also has 14..

UNC path name in SSIS Flat file connection - Hi , We are using SSIS 2005 and have a Flat File Connection in a package. The connection is pointing to a Mapped network drive (let see S:\file\myfile.txt) amd the package is running fine. Now in the Connection ConnectionString property I replaced the....

SSIS Newbie: Create new text logs when a SSIS package is run - Hi there, I was wondering if you could point me in the right direction on how I could create new csv/ txt files whenever a SSIS package is run? As far as I could understand, the SSIS have the ability to create logs, but I have noticed that it creates..

How can I have SSIS save configuration file path as a rela.. - Hi, I've noticed that SSIS saves paths to configuration files as absolute paths. It does do that with the Execute Package task as well. This way it's very hard to move a SSIS project to another location. I wonder now I can easily deploy an SSIS..
   Database Help (Home) -> DTS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]