Export SQL query results to Excel?

preview_player
Показать описание
In this video tutorial I will show how to export SQL Query results to excel using Microsoft SQL Server. After executing the SQL Query, in the results pane, click the top-left cell to highlight all the records, and then right-click the top-left cell and click "Save Results As" and give any name for it.
Рекомендации по теме
Комментарии
Автор

This is exactly what I am already doing. I am wanting to know if there is a command whereby when you run the statement you can add additional syntax to automatically “pipe” the output to the CSV file without having to manually do the remaining steps shown starting at 0:25 and beyond…

scriptmaster
Автор

que pasa con los campos cuyos valor sea '0000120' al exportar y llevarlos al excel sale 120. como arreglar este tema.

gendersoncaro
Автор

Is there a way to grab the header too?

joallison
Автор

check what you share. this is not export to excel. this is export as csv. there is no option to export directly to excel in query result

gokselboun