简体   繁体   中英

MS SQL Server 2019 export db from commandline

I need to export data from my MS SQL Server 2019, but I need to do so from the command line.

How can I achieve this? What are the best practices for exporting schemas?

As per comments below, I wanted to just use the mdf file but was encouraged not to.

Use the bcp command line utility that allows for exporting data to flat files from tabular. The utility is part of the sql server setup and is available on your system

https://docs.microsoft.com/en-us/sql/tools/bcp-utility?view=sql-server-ver15

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM