C#.NET,获取OLEDB提供程序版本 [英] C#.Net, Get the OLEDB provider version

查看:133
本文介绍了C#.NET,获取OLEDB提供程序版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要标识已安装OLEDB提供程序的版本。之前读取Excel文件。我该怎么做?

I need to Identify the Installed OLEDB provider version. before reading an Excel file. How can I do that?

推荐答案

您可以使用OleDbEnumerator.GetElements方法。 http://msdn.microsoft.com/en-us/library/ system.data.oledb.oledbenumerator.getelements.aspx 以enumarate的驱动程序。你问他们的版本,也许这有助于链接:
的http:/ /dotnetref.blogspot.com/2009/04/getting-version-of-oledb-provider.html

You can use the OleDbEnumerator.GetElements Method . http://msdn.microsoft.com/en-us/library/system.data.oledb.oledbenumerator.getelements.aspx to enumarate the drivers. You ask the versions of them maybe this link helps: http://dotnetref.blogspot.com/2009/04/getting-version-of-oledb-provider.html

这篇关于C#.NET,获取OLEDB提供程序版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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