Hitting a different server in SSIS

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.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Megan BrooksSQL Server ConsultantCommented:
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,
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
anushahannaAuthor Commented:
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.
Megan BrooksSQL Server ConsultantCommented:
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.
anushahannaAuthor Commented:
Thanks for confirming that.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.