If you want to export to / from, there is a command line utility called BCP that allows you to execute these types of processes.
bcp utility
The bcp bulk copy utility copies data between an instance of Microsoft SQL Server and a data file in a user-specified format. The bcp utility can be used to import a large number of new rows into SQL Server tables or to export data from tables to data files. Except when the query option, the utility does not require knowledge of Transact-SQL. To import data into a table, you must either use the format file created for this table, or understand the structure of the table and the data types that are valid for your columns.
Taryn source share