简体   繁体   English

多个Excel工作表导入/导出到SQL Server

[英]Multiple excel sheets import/export to SQL Server

I have to export SQL Serverdata to Excel and edit (make a few changes) later restore it in the data in SQL Server database itself. 我必须将SQL Server数据导出到Excel并进行编辑(进行一些更改),然后再将其还原到SQL Server数据库本身的数据中。 I have tried doing this manually but can I do this task using SSIS or some other way because I have to do this several times a day. 我已经尝试过手动执行此操作,但是可以使用SSIS或其他方式执行此任务,因为我每天必须执行几次。

Googled for this all that I could find was using SSIS which has ability to export/import data of 1 sheet not multiple sheets 我可以找到的所有内容都用Google搜索过,它使用的SSIS能够导出/导入1张纸而不是多张纸的数据

Thanks in advance for your answers 预先感谢您的回答

In SSIS, in the Excel Source component, you can simply specify the sheet name. 在SSIS中,可以在Excel Source组件中简单地指定工作表名称。 You can have multiple Excel Components, or programmatically change the sheet name inside a loop. 您可以具有多个Excel组件,或以编程方式在循环内更改工作表名称。

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

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