The asp. ne source code downloaded from the internet has an mdf database. Now let's take a look at its usage.
Note that there is a difference between sqlexpress and the official version of mssqlserver connection string. You can check the information online.
1. append this database file to MSSMSE,
View the connection string in the source code directory.
<ConnectionStrings>
<Add name = "SperConnectionString1" connectionString = "Data Source =. \ SQLEXPRESS; User ID = sa; pwd = sa; Initial Catalog = Sper_lvyou "providerName =" System. data. sqlClient "/>
<Add name = "sper_lvyouConnectionString1" connectionString = "Data Source =. \ SQLEXPRESS; User ID = sa; pwd = sa; Initial Catalog = Sper_lvyou "providerName =" System. data. sqlClient "/>
</ConnectionStrings>
The database name is Sper_lvyou.
2. Find the database of the website in the data connection, right-click on it to modify the connection, and select enter user for SQL Server Authentication
Name and password and test connection
If the error "unable to generate an SQL Server user instance, only integrated connections can generate user instances. This connection will be closed"
Select False in User Instance.
Test the connection. If the user name and password are correct, the connection can be successful.