首页 > 数据库 > mysql教程 > 使用ACCESS数据库,连接字符串的配置

使用ACCESS数据库,连接字符串的配置

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
发布: 2016-06-07 15:38:19
原创
1282 人浏览过

Example of ASP.Net 2.0 Access Database Connection String connectionStrings add name ="accessConnStr" connectionString ="Provider=Microsoft.Jet.OLEDB.4.0;DataSource=|DataDirectory|ajTravelDB.mdb" providerName ="System.Data.OleDb" / / connec

Example of ASP.Net 2.0 Access Database Connection String

 connectionStrings>
    
add name="accessConnStr" connectionString="Provider=Microsoft.Jet.OLEDB.4.0; Data Source= |DataDirectory|ajTravelDB.mdb" providerName="System.Data.OleDb"/>
  
connectionStrings>


name

attribute of connectionstrings add element contains the name as accessConStr for the connection string.

connectionString attribute contains the connection string format supported by Oledb drivers. |DataDirectory| is used in the above of connection string to connect the MS Access Database placed inside the App_Data directory. By Default |DataDirectory| maps the path of database file placed inside the default App_Data directory. After |DataDirectory| add up the name of MS Access Database filename as shown in above example.

providerName attribute contains the name of the Namespace of ASP.Net 2.0 that will provide the methods and functions for Data Access while coding.

本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
mac使用
来自于 1970-01-01 08:00:00
0
0
0
在 vue 3 中使用 nuxt 而不使用组合 api
来自于 1970-01-01 08:00:00
0
0
0
php5.6可以使用吗?
来自于 1970-01-01 08:00:00
0
0
0
使用 golang 还有必要使用 nginx 么?
来自于 1970-01-01 08:00:00
0
0
0
php - 使用composer出错
来自于 1970-01-01 08:00:00
0
0
0
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板