Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Call for a database backup for a database on another (linked) server

$
0
0
I have a sproc that will generate a dynamic call (and this must be done in a stored procedure),... Anyway the dynamic call I am having problems with is that I needto dynamically create a statement to backup a database. It works as long as the database is on the same server / instance as the stored procedure. I want to be able to from server/instance A create a command that does a backup of a database that is on server B. I do not need help with the dynamic part (I don't think) I just can't figure out the syntax for a database backup where the database is on another server.Trying something like [ServerName].[DatabaseName] does not workAny help on this?

Viewing all articles
Browse latest Browse all 3145

Trending Articles