SQL Server 驱动程序名称

发布于 2024-09-27 18:58:37 字数 569 浏览 1 评论 0原文

如何找到要放入 ASP.NET 应用程序配置文件中 dataAccess 节点的“driver”属性中的字符串?所以这里是需要明确的节点:

>

它是 MS SQL Server 2008。如果这个问题已在其他地方得到回答,我很抱歉。我正在尝试在 SQL Server 安装目录中查找驱动程序,但仍然没有找到。任何帮助将不胜感激。

我的应用程序网络配置中已经有了它。我试图在配置文件的 dataAccess 节点而不是连接字符串节点中添加一个新的 ms sql server 2008 数据库条目。我已经在配置文件的正确位置输入了 conn 字符串。我希望我说得清楚。

这是一个特殊的配置文件,而不仅仅是常规的 asp.net web.config 文件。该配置文件适用于内容管理系统。它有一个用于连接字符串的节点,我在其中放入了正确的字符串。我希望能够让我的数据库充当此 CMS 的源。因此,我尝试在配置文件的“dataAccess”节点部分提供驱动程序。

How do I find what string is to be put in my ASP.NET application config file in the 'driver' attribute for the dataAccess node? So here is the node to be clear:

<add name="somenamehere" driver="I want to know what goes in here???" connectionStringName="somenamehere"/>

Its a MS SQL Server 2008. I am sorry if this has been answered elsewhere. I am trying locating the driver in my SQL server installation directory but still havent found any. Any help would be appreciated.

I have that already in my application web config. I was tring to add a new ms sql server 2008 database entry inside the dataAccess node of my config file and not the connections string node. I have already enetered the conn string at the right plce in the config file. I hope that I am clear.

This is a special config file and not just a regular asp.net web.config file. This config file works with a content management system. It has a node for connectionString where I have put in a proper string. I want to be able to make my database act as a source for this CMS. So I am trying to provide a driver in the 'dataAccess' nodes section of the config file.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

匿名。 2024-10-04 18:58:37

尝试:

http://connectionstrings.com

通常类似于:

<add name="MyDb" 
    connectionString="Server=.\SQLEXPRESS; Database=mydb; Integrated Security=True;"
    providerName="System.Data.SqlClient" />

Try:

http://connectionstrings.com

Typically something like:

<add name="MyDb" 
    connectionString="Server=.\SQLEXPRESS; Database=mydb; Integrated Security=True;"
    providerName="System.Data.SqlClient" />
自此以后,行同陌路 2024-10-04 18:58:37

您的连接字符串可能不需要该属性。除非您得到了需要它的具体指导,否则请将其保留。

只需使用 nameconnectionString 以及 providerName 参数即可。提供商名称可能是:

providerName="System.Data.SqlClient"

You probably don't need that attribute for your connection string. Just leave it out, unless you've gotten specific guidance that you need it.

Just use the name and connectionString and providerName parameters. Providername is probably:

providerName="System.Data.SqlClient"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文