使用SQL从Microsoft Excel获取数据。 [英] Fetching Data from Microsoft Excel using SQL.

查看:81
本文介绍了使用SQL从Microsoft Excel获取数据。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以从打开的Excel文件中读取数据,我们不知道结束单元格。如果它每天都在变化。在这种情况下,有一种方法可以读取所有记录而不给出结束单元格。请小结。



ex:今天我在文件中有300条记录,明天它可能是1000或200条。

Can I read data from Opened Excel file where we dont know the end cell. if it change day by day. in that case is there a way to read all records with out giving end cell. Please sugget.

ex: Today I have 300 records in the file and tomorrow it may be 1000 or 200.

推荐答案

您可以使用SQL链接服务器来读取Excel文件。这些链接可以帮助您:



https:// support.microsoft.com/en-us/kb/306397 [ ^ ]



使用SQL Server链接服务器查询Excel文件 [ ^ ]
You can use SQL Linked Server to read the excel files. These links should help you:

https://support.microsoft.com/en-us/kb/306397[^]

Using a SQL Server Linked Server to Query Excel Files[^]


这篇关于使用SQL从Microsoft Excel获取数据。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆