zoukankan
html css js c++ java
在web.config中连接各种数据库代码
1
<?xml version="1.0"?>
2
<configuration>
3
<connectionStrings>
4
<!--
5
This connection is inherited from the ASP.NET Quickstart Web.config file
6
Uncomment this section to edit the sample locally
7
8
<add name="Pubs" connectionString="Server=(local)\SQLExpress;Integrated Security=True;Database=pubs;Persist Security Info=True"
9
providerName="System.Data.SqlClient" />
10
<add name="Northwind" connectionString="Server=(local)\SQLExpress;Integrated Security=True;Database=Northwind;Persist Security Info=True"
11
providerName="System.Data.SqlClient" />
12
<add name="Contacts" connectionString="Server=(local)\SQLExpress;Integrated Security=True;Database=Contacts;Persist Security Info=True"
13
providerName="System.Data.SqlClient" />
14
-->
15
<add name="NorthwindOLEDB" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|Northwind.mdb;"
16
providerName="System.Data.OleDb" />
17
<add name="ContactsDatabase" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|Database.mdf;Integrated Security=True;User Instance=true;"
18
providerName="System.Data.SqlClient" />
19
</connectionStrings>
20
<system.web>
21
<pages styleSheetTheme="Default"/>
22
<caching>
23
<sqlCacheDependency enabled="true" pollTime="1000">
24
<databases>
25
<add name="Pubs" connectionStringName="Pubs"/>
26
</databases>
27
</sqlCacheDependency>
28
</caching>
29
</system.web>
30
</configuration>
31
查看全文
相关阅读:
Orcad CIS怎么批量修改字体大小
DCDC电路电感和电容啸叫的原因
D类功放基础简介
U盘EFI分区删不掉怎么办
EMI-CLK信号串电阻并电容
Buck工作原理分析,连续模式,断续模式
Hyperlynx仿真学习
Audio简介
ORCAD常见DRC错误
39:记负均正
原文地址:https://www.cnblogs.com/huashanlin/p/474279.html
最新文章
Alpha冲刺(3/10)
Alpha冲刺(2/10)
Alpha 冲刺 (1/10)
需求分析报告
项目UML设计
团队选题报告
论文爬取 & 词频统计2.0
软工团队展示
论文平台原型设计
CSS布局学习(三)
热门文章
css基础参考文档
CSS布局学习(三)
CSS布局学习(二)
CSS基础学习(二) 之 width min-width max-width属性
CSS基础学习(一) 之 line-height 与 height 属性区别
JavaScript闭包函数&箭头函数调用与执行
CORS跨域请求
使用flask搭建服务端
React内三种函数的写法
Buck电路匹配和二极管仿真模式
Copyright © 2011-2022 走看看