Database dump using command line

  • Hi,

    Bit of an odd one this, I have had a request to trigger a SQL database dump from a different server to the one that the db is on and to trigger the dump from a command line so that the db dump is synchronised to other backup tasks. Does anyone know what command needs to be executed?

    Hope this makes sense

  • You could run the BACKUP DATABASE command in a sql script using ISQL with the -S option to specify the name of the server to run the script on.

  • You could also encapsulate the dump in a dts, and use the dtsrun.exe utility that comes with SQL. Or, if you know scripting, SQL-DMO and SQL-NS give ultimate control of SQL Server

  • Hi all

    Managed to crack it as follows

    isql /U [SQL Login Name] /P [Password(Can be hidden)] /S [Server Name] /q "backup database [DB Name] to [Dump name]with init

    Thanks for all the help

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply