首页 > 代码库 > 数据库连接字符串

数据库连接字符串

<add key="ConnectionStrings" value=http://www.mamicode.com/"data source =(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =localhost)(PORT = 1521))(CONNECT_DATA = http://www.mamicode.com/(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")

 

数据库连接字符串