What is a simple command line program or script to backup SQL server databases?

后端 未结 11 915
北海茫月
北海茫月 2020-11-28 19:35

I\'ve been too lax with performing DB backups on our internal servers.

Is there a simple command line program that I can use to backup certain databases in SQL Serv

11条回答
  •  悲&欢浪女
    2020-11-28 19:52

    I'm using tsql on a Linux/UNIX infrastructure to access MSSQL databases. Here's a simple shell script to dump a table to a file:

    #!/usr/bin/ksh
    #
    #.....
    (
    tsql -S {database} -U {user} -P {password} <{output_file.dump}
    

提交回复
热议问题