[英]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.