We help IT Professionals succeed at work.

Export MSSQL Tables to .csv

Using Import / Export Wizard on MS SQL 2008 I want to export tables to .csv files
Watch Question

Brian CroweDatabase Engineer
Top Expert 2005
Right-click on the target database
Select Tasks -> Export...
Change the Data Source to "SQL Server Native Client 10.0" or whatever version is available to you
Verify the Server Name and provide the appropriate credentials and select the source Database
Click [Next  >]
Change Destination to "Flat File Destination"
Provide a file name and location
Format should be "Delimited"
Either leave Text qualifier at "<none>" or typically use double quotes "
Select or de-select "Column names in the first data row" as you desire
Click [Next >]
Click [Next >] on the "Specify Table Copy or Query" page
Select the "Source table or view"
Specify the Row delimiter and Column delimiter though "{CR}{LF}" and "Comma {,}" defaults should suffice
Preview if desired
Click [Next >]
Click [Finish >] on the Run Package page
Click [Finish >] on the Complete the Wizard page


Thanks all