How to export all data from table to an insertable sql format?

后端 未结 6 1327
Happy的楠姐
Happy的楠姐 2020-12-04 05:32

I have a Table (call it A_table) in a database (call it A_db) in Microsoft SQL Server Management Studio, and there are 10 rows.

I have anot

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-04 05:43

    Command to get the database backup from linux machine terminal.

    sqlcmd -S localhost -U SA -Q "BACKUP DATABASE [demodb] TO DISK = N'/var/opt/mssql/data/demodb.bak' WITH NOFORMAT, NOINIT, NAME = 'demodb-full', SKIP, NOREWIND, NOUNLOAD, STATS = 10"
    

    Hope it helps someone.

提交回复
热议问题