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?
↧