[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Hitting a different server in SSIS

Posted on 2010-04-08
4
Medium Priority
?
255 Views
Last Modified: 2013-11-10
I am able to move a file from one server to another using the File System Task, using UNC path. But if I do not want to use UNC path, what task options are available to transfer it by giving the server's info and using the Domain login permissions be able to write a file into the server.

For example: Copy File1 from c:\text.txt from Server1 and copy to c:\text.txt in Server2.

thanks
0
Comment
Question by:anushahanna
  • 2
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
Megan Brooks earned 2000 total points
ID: 30131735
You are not going to be able to directly reference a drive letter on a different server. You can either use a UNC path or you can map a UNC path to a drive letter, but mapping a drive letter in a batch process would be unusual.
If you run the SSIS task under an identity that is an administrator on the remote machine then you can use UNC paths to administrative shares to access files by drive letter. For example,
\\server\c$\dir\file.ext
would reference the C: drive. You can reach any of the remote drives that way as long as the identity of the job using the UNC path is an administrator on the target machine (these are administrative shares, after all).
To establish an administrative identity, I would create a SQL Server Credential for it, then create a SQL Agent SSIS Proxy for the credential, then run the SSIS job step under that proxy.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 30136408
rscowden, I am able to hit the other server through UNC path. So practically that is the only way to be able to do it, right? thanks.
0
 
LVL 16

Assisted Solution

by:Megan Brooks
Megan Brooks earned 2000 total points
ID: 30138415
Yes, unless you want to assign a temporary drive letter, but that still needs a UNC path. Using an admin share at least let's you include the remote drive letter within the UNC path. I think that is the best you can do.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 30145087
Thanks for confirming that.
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Question has a verified solution.

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

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
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

607 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