简体   繁体   English

Sql Azure 导出为 CSV

[英]Sql Azure Export to CSV

I am trying to export Sql Azure table to CSV.我正在尝试将 Sql Azure 表导出到 CSV。 When I right click on Database I see Tasks / Export Datatier application.当我右键单击数据库时,我会看到任务/导出 Datatier 应用程序。 Where Can I see the option to export data to csv from Sql Azure?在哪里可以看到从 Sql Azure 将数据导出到 csv 的选项?

If you are using Windows 10 and have SSMS and the Client tools, you should be able to just go to the search window and type 'Import and Export Data' to find the Import and Export Data program (which is basically the SQL Server Export Wizard).如果您使用的是 Windows 10 并拥有 SSMS 和客户端工具,您应该能够只进入搜索窗口并键入“导入和导出数据”以找到导入和导出数据程序(基本上是 SQL Server 导出向导)。

For some reason the choice doesn't show up in SSMS for Azure databases - but you can run the wizard as the stand alone app - and it works fine with Azure databases.出于某种原因,Azure 数据库的 SSMS 中没有显示该选择 - 但您可以将向导作为独立应用程序运行 - 它适用于 Azure 数据库。 More detail at: http://bpmdeveloper.com/sql-server-export-wizard-csv/更多细节在: http ://bpmdeveloper.com/sql-server-export-wizard-csv/

Here are two straight forward solutions if you are okay with pulling the csv to your working environment:如果您可以将 csv 拉到您的工作环境中,这里有两个直接的解决方案:

Use SSMS to query your data with quoted column names, then right click in the results window, and click 'save results as'.使用 SSMS 使用引用的列名查询您的数据,然后在结果窗口中单击鼠标右键,然后单击“将结果另存为”。

The same process can be followed with Azure Data Studio, but instead of right clicking, you can click the 'save as csv' button to the right of the query results. Azure Data Studio 可以执行相同的过程,但您可以单击查询结果右侧的“另存为 csv”按钮,而不是右键单击。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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