码迷,mamicode.com
首页 > 数据库 > 详细

数据库连接字符串

时间:2015-01-14 09:44:29      阅读:171      评论:0      收藏:0      [点我收藏+]

标签:

<add key="ConnectionStrings" value="data source =(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =localhost)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl))); user=SYSTEM; password=123;" />
 <add name="ApplicationServices"
         connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
         providerName="System.Data.SqlClient" />
 new SqlConnection("server=LJM\\MSSQL2005;database=MySchool;uid=sa;pwd=123456")

 

数据库连接字符串

标签:

原文地址:http://www.cnblogs.com/wjshan0808/p/4223131.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!