日期:2014-05-16  浏览次数:20435 次

vs 2008 链接数据库 windows身份默认链接配置

??? <connectionStrings>
??????? <add name="dbauConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\dbau.mdb;Persist Security Info=True"
??????????? providerName="System.Data.OleDb" />

????? <add name="SQLCONN" connectionString="Data Source=COMPUTER-051ZHE\SQLEXPRESS;Initial Catalog=Northwind;Integrated Security=True"
?????????? providerName="System.Data.SqlClient" />
????? <!---COMPUTER-051ZHE\\SQLEXPRESS;Initial Catalog=Northwind;Integrated Security=True
??????? <add name="SQLCONN" connectionString="Data Source=localhost;Initial Catalog=Northwind;User ID=sa;Password=5500244@doking"
??????????? providerName="System.Data.SqlClient" />-->
??????? <add name="NorthwindConnectionString" connectionString="Data Source=CHINESE-AA421A7;Initial Catalog=Northwind;User ID=sa;Password=5500244@doking"
??????????? providerName="System.Data.SqlClient" />
??? </connectionStrings>

?

?


? ?
? ?
<?xml version="1.0" encoding="utf-8"?> <!-- ??? 注意: 除了手动编辑此文件以外,您还可以使用 ??? Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的 ???? “网站”->“Asp.Net 配置”选项。 ??? 设置和注释的完整列表在 ??? machine.config.comments 中,该文件通常位于 ??? \Windows\Microsoft.Net\Framework\v2.x\Config 中 --> <configuration>
??? <configSections>
????? <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
??????? <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
????????? <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
????????? <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
??????????? <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
??????????? <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
??????????? <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
??????????? <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
????????? </sectionGroup>
??????? </sectionGroup>
????? </sectionGroup>
??? </configSections>? 
??? <appSettings/>
??? <connectionStrings>
??????? <add name="dbauConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\dbau.mdb;Persist Security Info=True"
??????????? providerName="System.Data.OleDb" />
????? <add name="SQLCONN" connectionString="D