获取已安装的 DBMS 列表
有没有什么方法(或 API)可以使用 C# 来获取计算机中所有已安装 DBMS 的列表?
我听说WMI可以获取有关系统的信息,但是它可以用来获取已安装的DBMS吗?
有什么建议吗?
编辑:问题已解决,没有任何 API 或 DLL 来提取已安装 DBMS 的列表,唯一的方法是获取正在运行的进程列表,然后将它们与内部列表进行比较。
Is there any way (or API) to use to get a list of all installed DBMS in a computer using C#?
I heard WMI can get information about the system, but can it be used to get installed DBMS?
Any advice?
EDIT: problem solved, there isn't any API or DLL to pull list of installed DBMS, the only way is to get list of running processes and then compare them to an internal list.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简短的回答:不。
较长的回答:没有任何东西可以将特定应用程序定义为“DBMS”。因此,您需要查看所有已安装的软件,并尝试识别符合“DBMS”资格的各个软件。对于Windows来说,它只是软件和服务。
例如,什么才算是“DBMS”(对您来说)?可能是 SQL Server、MySQL,但是 RavenDB 呢?它不是我所说的“DBMS”,尽管它肯定可以扮演许多相同的角色。
Short answer: No.
Longer answer: There is nothing that defines a particular application as a "DBMS". So you would need to look at all the installed software, and attempt to identify the individual pieces of software that you qualify as a "DBMS". To windows, its just software and services.
For example, what qualifies as a "DBMS" (to you)? Probably SQL Server, MySQL, but what about RavenDB? It's not what I would call a "DBMS", although it can certainly fill a lot of the same roles.