I need to generate CSV file with the stored procedure out put. Ex: Select * From Table1
I want to generate a CSV file with the data which coming from select statement.
How can I achieve this in SQL Server?
以下是使用 SSIS 获取查询结果并将它们附加到平面文件目标的指南: http : //knowlton-group.com/using-ssis-to-export-data-to-flat-files/
这取决于,如果您使用SQLCMD
命令行实用程序运行查询,那么您可以使用-o output_file
开关并指定一个*.csv
文件作为输出目标。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.