Sqlserver database tables to export a CSV file

1, a quick and easy way

         Direct Select query data table, select the data as a CSV file, convenient way for such a small amount of data to import data. The amount of data too large to bring more pressure sqlserver service, but also the cost of memory, causing memory corruption!


image.png

2. Second way Sqlserver own export tool for exporting large amounts of data

     2.1 Select Database -> Data Right -> Tasks -> Import Data

image.png

  2.2 Select "Next"

image.png

 2.3 selecting a data source

image.png

2.4 Selecting the export destination

image.png

2.5 Click "Browse" to select the file type to save

image.png

2.6 direct Next selected

image.png


2.7 choose to export the table or view

image.png

2.8 choosing to export the data table, you can also click the "Edit Map" to edit and select the fields to export, then the next step


image.png

2.10 "Finish"

image.png

2.11 Export Success

image.png



















Guess you like

Origin blog.51cto.com/12831900/2412478