简体   繁体   English

如何获得提供者名称以打开Ole DB连接?

[英]How do I get provider name to open Ole DB connection?

So I have a client program and a database on sql server that's on my pc (localdb). 所以我在我的PC(localdb)上的SQL Server上有一个客户端程序和一个数据库。 I'm trying to set connection on, but it seems like provider is wrong. 我正在尝试建立连接,但似乎提供程序是错误的。 My connection string looks like this: 我的连接字符串如下所示:

connection.ConnectionString =
        "Data Source=(localdb)\\Projects;" +
        "Provider=MSIDXS;" +
        "Initial Catalog=TermPaperWork;" +
        "User id=DAZZBOURGH\\Dazzbourgh;" +
        "Integrated Security=True;" +
        "Password=;";

So everything is OK there, except provider. 因此,那里的一切都可以,除了提供者。 I don't get what it is and how to use it and how to know which provider suits my database. 我不知道它是什么,如何使用它以及如何知道哪个提供者适合我的数据库。

How do I find out my provider for exact base? 如何找到我的提供者的确切基础?

当我对连接字符串的格式有疑问时,我总是使用http://www.connectionstrings.com

暂无
暂无

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

相关问题 如何使用 VFP OLE DB 提供程序关闭表 - How to close a table with the VFP OLE DB Provider 如何在Ole Db连接中的文本框中指定文件路径名 - How to specify file path name from text box in Ole Db connection 尝试打开和OLE DB连接时获取“ System.InvalidOperationException” - Getting “System.InvalidOperationException” When trying to open and OLE DB connection 当我不在ASP应用程序中使用该提供程序时出现“对OLE DB提供程序的临时访问”错误 - Error with “ad hoc access to OLE DB provider” when I'm not using that provider in ASP application 如果Ole.DB提供程序在系统上可用,为什么OleDbConnection.Open()会抛出无法识别的数据库格式 - Why OleDbConnection.Open() throws Unrecognized database format if Ole.DB provider is available on the system 如何在 C# 中获取开放端口的进程名称? - How do I get process name of an open port in C#? 未在ConnectionString中指定OLE DB提供程序。 'Provider = SQLOLEDB; - An OLE DB Provider was not specified in the ConnectionString. 'Provider=SQLOLEDB; 未在ConnectionString中指定OLE DB提供程序。 例如,“ Provider = SQLOLEDB;” - An OLE DB Provider was not specified in the ConnectionString. An example would be, 'Provider=SQLOLEDB;' 未在ConnectionString中指定OLE DB提供程序。 '提供者= SQLOLEDB - An OLE DB Provider was not specified in the ConnectionString. 'Provider=SQLOLEDB 如何解决OLE DB访问接口Microsoft ACE OLEDB 12.0对于链接服务器(空)的错误? - How to resolve OLE DB provider Microsoft ACE OLEDB 12.0 for linked server (null) error?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM