Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Help - Script of SFTP from One Server to Anothe

Author  Topic 

vaddi
Posting Yak Master

145 Posts

Posted - 2006-10-09 : 12:41:03
Hello,

I am doing the restore of Database from production server to Test server. I wanted to automate this process of restore.

I wanted a script which can SFTP (SSH Transfer) , from the test server to the prodcution server.
So, that the script can go over to the prod and get the required files.

Now what I am doing is , getting the back up copy from the production server to the local machine and then refreshing/restoring on the test server.

Thanks

nr
SQLTeam MVY

12543 Posts

Posted - 2006-10-09 : 12:57:42
What is the problem you are having?
A stored procedure should be able to do all this.
Have a look at
http://www.nigelrivett.net/SQLAdmin/s_RestoreDatabase.html
http://www.nigelrivett.net/FTP/s_ftp_GetFile.html
(sftp is similar depending on your product)
also see
http://www.nigelrivett.net/SQLAdmin/s_TestRestore.html

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

vaddi
Posting Yak Master

145 Posts

Posted - 2006-10-09 : 13:07:43
Hello NR,

Thanks for the scripts. I was looking for the script of:
FTP get file using tsql.

I have got the scripts for the backup and restore of the DB's. But I didnot know how to get the Backup files from the Prod sever to the Test server using the SFTP .

Thanks
Go to Top of Page
   

- Advertisement -