dbTalk Databases Forums  

SSIS file archiving

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


Discuss SSIS file archiving in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS file archiving - 10-31-2008 , 08:01 AM






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:

Quote:
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

Reply With Quote
  #22  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS file archiving - 10-31-2008 , 08:01 AM






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:

Quote:
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

Reply With Quote
  #23  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS file archiving - 10-31-2008 , 08:01 AM



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:

Quote:
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

Reply With Quote
  #24  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS file archiving - 10-31-2008 , 08:01 AM



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:

Quote:
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

Reply With Quote
  #25  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS file archiving - 10-31-2008 , 08:01 AM



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:

Quote:
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

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.