ASP.net aspnetdb.mdf连接字符串

时间:2011-11-24 19:01:48

标签: asp.net connection-string membership-provider aspnetdb

配置成员资格提供程序后,我注意到我的web.config中没有ASPNETDB.mdf的连接字符串。不应该有连接字符串?什么是合适的语法?提前谢谢!

1 个答案:

答案 0 :(得分:2)

默认连接字符串在machine.config中定义:

<add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>