Default MVC Web Application Database

When setting up a new ASP.NET MVC web application, the default connection string inside Web.Config looks something like this:

connectionString = "data source =. \ SQLEXPRESS; Integrated Security = SSPI; AttachDBFilename = | DataDirectory | aspnetdb.mdf; User Instance = true"

I just want to play with registration and registration, etc., but when I run the application, it obviously cannot find the SQL database. What database, which tables do I need to set up to do this?

Do I have SQL Server 2005 Standard installed on my system, enough?

Thanks.

+3
source share
1 answer

SQL Server 2005 . SQL Server Express App_Data. :

Data Source=<server name>;Initial Catalog=<database name>;User Id=<user name>;Password=<password>;

ASP.NET, aspnet_regsql.exe, .NET 2.0 (, C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727). .

+5

Source: https://habr.com/ru/post/1703002/


All Articles