Susan
Susan

Reputation: 1832

ASP.net aspnetdb.mdf connection string

After configuring the Membership Provider, I noticed that there is no connection string for ASPNETDB.mdf in my web.config. Shouldn't there be a connection string? What is the appropriate syntax? Thanks in advance!

Upvotes: 2

Views: 3483

Answers (1)

Peter Bromberg
Peter Bromberg

Reputation: 1496

The default connection string is defined in machine.config:

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

Upvotes: 2

Related Questions