简体   繁体   English

将SQL Server数据导出到CSV文件

[英]Export SQL server data into a CSV file

I've just taken care of a project that requires converting data from the old website (built in C# web form) to the new one (using PHP). 我刚刚完成了一个项目,该项目需要将旧网站(以C#Web表单构建)中的数据转换为新网站(使用PHP)。

In the old database, there is a product table contains 1600 products that I need to export into a CSV file then import to the new database but I have no idea to do that. 在旧数据库中,有一个产品表,其中包含1600种产品,我需要将它们导出到CSV文件中,然后导入到新数据库中,但是我不知道要这样做。

I can access the current server but I don't see any .cs file (code-behind file). 我可以访问当前服务器,但是看不到任何.cs文件(代码隐藏文件)。 I also have no idea how to export that table to a CSV file using myLittleTools (The SQL server management tool that Plesk provide). 我也不知道如何使用myLittleTools(Plesk提供的SQL Server管理工具)将该表导出到CSV文件。

Can any have me please? 能请我吗?

Thank you very much. 非常感谢你。

Try SQL Server Import and Export Wizard. 尝试使用SQL Server导入和导出向导。 This is a tool provided by MSSQL . 这是MSSQL提供的工具。

Reference links here: https://docs.microsoft.com/en-us/sql/integration-services/import-export-data/import-and-export-data-with-the-sql-server-import-and-export-wizard 参考链接在这里: https : //docs.microsoft.com/zh-cn/sql/integration-services/import-export-data/import-and-export-data-with-the-sql-server-import-and-出口向导

https://docs.microsoft.com/en-us/sql/integration-services/import-export-data/get-started-with-this-simple-example-of-the-import-and-export-wizard https://docs.microsoft.com/en-us/sql/integration-services/import-export-data/get-started-with-this-simple-example-of-the-import-and-export-wizard

You can export to either or excel or directly map two tables of different databases and transfer data 您可以导出到或excel或直接映射两个不同数据库的表并传输数据

根据MyLittleAdmin网站,您可以打开表以查看数据并将其导出到那里。

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

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