sqlserver連線字串
阿新 • • 發佈:2019-02-11
<connectionStrings>
<add name="connstr" connectionString="Server=X.X.X.X;Initial Catalog=NFineBase;User ID=sa;Password=000000" providerName="System.Data.SqlClient" />
</connectionStrings>
連線本地資料庫
1.
<connectionStrings>
<add name="LogDBConn" connectionString="Data Source=.;Initial Catalog=LearnNFine;User ID=sa;Password=sa"/>
</connectionStrings>
2.
<connectionStrings>
<add name="LogDBConn" connectionString="Data Source=PC-20*******SKFX\MYSQLSERVER;Initial Catalog=a;User ID=sa;Password=sa"/>
</connectionStrings>