标签:
<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