sql链接字符串

<add name="ConnectionString" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
providerName="System.Data.SqlClient" />
<add name="ConnectionString" connectionString="Data Source=(local);Initial Catalog=AdventureWorks; Integrated Security=SSPI; Database=aaaa"
providerName="System.Data.SqlClient" />

<add name="ConnectionString" connectionString="server=192.168.1.1;database=ddd;uid=sa;pwd=sa"
providerName="System.Data.SqlClient" />

posted @ 2013-03-13 14:32  王者杂货铺  阅读(127)  评论(0编辑  收藏  举报