Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export to remote server on a different domain

Status
Not open for further replies.

ecobb

Programmer
Dec 5, 2002
2,190
US
I have a DTS package that runs nightly, exporting information from various tables into two CSV files. These files need to be placed on another server, which IS on our Network but IS NOT on our Domain. I have a mapped drive set up from my SQL Server to the remote server, which I connect to using it's local "Administrator" account. Every time I log on to the SQL Server, I have to provide the password to the remote server to reconnect the mapped drive. When I run the DTS package manually, it places the CSV files on the remote server with no problems.

Now, here's my problem. I want to schedule this package to run nightly. If I'm not mistaken, whenever the SQL Server is logged off, the mapped drive to the remote server is not connected, right? So, even though the scheduled job will run without the SQL server being logged on, it won't be able to place the files on the remote server.

One way around this is to leave the SQL Server logged in all of the time, which I would rather not do. I thought about using the actual network path instead of a mapped drive (\\0.0.0.0\folder\file.csv instead of E:\folder\file.csv), but I'm not sure how to send the login to the remote server. Since the two machines are not on the same domain, I can't create a user that has permissions on both machines, can I?

Does anyone have any ideas as to how I can automate the exporting of these files?



Hope This Helps!

Ecobb

"My work is a game, a very serious game." - M.C. Escher
 
Is there a posibility of FTPing the file to the remote server?

Just a thought...

John
 
Thanks John! I thought about that but everything I read about the DTS FTP says that it's for download only. Is there a way to use the DTS built in FTP for uploads? If there is that would be great!



Hope This Helps!

Ecobb

"My work is a game, a very serious game." - M.C. Escher
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top