简体   繁体   English

将数据从Excel导入SQL Server 2014

[英]Import data from Excel into SQL Server 2014

My question is not regarding how this is done, the application that I'm currently working on converts Excel to XML (using standard XSD), and then we have scripts to read data from XML and put it into database. 我的问题不在于如何完成,我正在开发的应用程序将Excel转换为XML(使用标准XSD),然后我们有脚本从XML读取数据并将其放入数据库。

Why we need to generate XML, can't we directly import data from Excel to database? 为什么我们需要生成XML,我们不能直接将数据从Excel导入数据库吗? What is the benefit of this XML? 这个XML有什么好处?

Its Light weight and portable across any database, irrespective of the underlying os or type of DB structure we cab use it directly. 它重量轻,可以在任何数据库中移植,无论底层操作系统或DB结构类型如何,我们都可以直接使用它。

I don't know about your application or its purpose. 我不知道你的申请或目的。 If you want to use webservice or RPC services the you can go by xml 如果你想使用webservice或RPC服务,你可以通过xml

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

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