﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / Backups  / Restore database to a remote server / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 19 Jun 2013 21:20:35 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Restore database to a remote server</title><link>http://www.sqlservercentral.com/Forums/Topic1397461-357-1.aspx</link><description>[font="Comic Sans MS"]Hi tpprometer.As per your question "I just can't figure out how to get a job that is running on server A to restore the database on server B.".As mentioned in your post that both servers have access to the shared location (may be on the same domain or shares trust relationship between domains). My question to you is why do you want to set up a job on server A to get your db restored on server B, whereas you can setup a job on server B and take the backup file from the shared path, and restore it on server B?You kinda of do that in t-sql using network path in your restore script.Regards,Faisal[/font]</description><pubDate>Sat, 19 Jan 2013 14:23:47 GMT</pubDate><dc:creator>faisalfarouqi</dc:creator></item><item><title>RE: Restore database to a remote server</title><link>http://www.sqlservercentral.com/Forums/Topic1397461-357-1.aspx</link><description>[quote][b]durai nagarajan (1/1/2013)[/b][hr]just a doubt, why dont you try log shipping or am i missing something?[/quote]I was considering that, however as per the requirements for this project that was not considered as an option.  More important, the database is set to simple restricting the use of the log file.</description><pubDate>Mon, 14 Jan 2013 19:01:04 GMT</pubDate><dc:creator>tppromoter</dc:creator></item><item><title>RE: Restore database to a remote server</title><link>http://www.sqlservercentral.com/Forums/Topic1397461-357-1.aspx</link><description>just a doubt, why dont you try log shipping or am i missing something?</description><pubDate>Tue, 01 Jan 2013 11:17:40 GMT</pubDate><dc:creator>durai nagarajan</dc:creator></item><item><title>RE: Restore database to a remote server</title><link>http://www.sqlservercentral.com/Forums/Topic1397461-357-1.aspx</link><description>It may work, just realize that you have given up the notion of centralized management. If the restore fails you will not see it in the log on Server A. Just something to consider if you have many instances in your environment.</description><pubDate>Mon, 24 Dec 2012 09:59:53 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>RE: Restore database to a remote server</title><link>http://www.sqlservercentral.com/Forums/Topic1397461-357-1.aspx</link><description>Thank you guys for the response.  I apologize about the last response.  While taking what you have mentioned into consideration, I was able to finally figure the step out that I was missing.  I Linked the server B to server A through the management tool.  I then created a step in the SQL server agent job on server A that would execute the store procedure in the msdb, invoking my job that was created on server B.  This allowed server A to initiate the restore DB job on server B.  It works like a charm!!!! thanks for the info</description><pubDate>Mon, 24 Dec 2012 08:23:06 GMT</pubDate><dc:creator>tppromoter</dc:creator></item><item><title>RE: Restore database to a remote server</title><link>http://www.sqlservercentral.com/Forums/Topic1397461-357-1.aspx</link><description>[quote][b]tppromoter (12/17/2012)[/b][hr]I just can't figure out how to get a job that is running on server A to restore the database on server B.[/quote]The restore command has to be executed within the server where the database will be restored. A couple options is you need to start this process from server A and have the database restored on server B:1. setup server A as a master server and server B as a target server so that a job created on server A will restore a database on server B. [u][url=http://msdn.microsoft.com/en-us/library/ms191305(v=sql.90).aspx]Creating a Multiserver Environment (SQL Server 2005)[/url][/u]2. setup a job on server A that executes sqlcmd.exe which then execute a restore command against server B [u][url=http://msdn.microsoft.com/en-us/library/ms162773(v=sql.90).aspx]sqlcmd Utility (SQL Server 2005)[/url][/u]:[quote]sqlcmd.exe -S serverB -E -Q "RESTORE DATABASE [YourDatabase] ...."[/quote]</description><pubDate>Wed, 19 Dec 2012 09:19:14 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>RE: Restore database to a remote server</title><link>http://www.sqlservercentral.com/Forums/Topic1397461-357-1.aspx</link><description>You can do it by two options: SQL Server Management Studio (GUI) T-SQL (Command line) But I only prefer T-SQL because it is easy to use. You can get full idea about all the steps from here: http://www.techrepublic.com/blog/window-on-windows/how-do-i-restore-a-sql-server-database-to-a-new-server/454</description><pubDate>Tue, 18 Dec 2012 22:11:55 GMT</pubDate><dc:creator>prettsons</dc:creator></item><item><title>Restore database to a remote server</title><link>http://www.sqlservercentral.com/Forums/Topic1397461-357-1.aspx</link><description>Hello Everyone,I am fairly new to this forum and have some experience with SQL.  I was recently assigned a project at work and there is some different ideas about how the SQL server agent jobs work.  Rather than go on and on about it, is it possible to restore a database from server A onto server B via query that is a step within a job?I have an SQL job that backs up the database to a shared location and both servers have access to it.  I just can't figure out how to get a job that is running on server A to restore the database on server B. Thanks in advance for the info</description><pubDate>Mon, 17 Dec 2012 16:04:53 GMT</pubDate><dc:creator>tppromoter</dc:creator></item></channel></rss>