9. If you are using IIS on a machine that has SQL
Server Express, the final thing you need to do is
modify your connection strings. If you don’t have
SQL Server Express installed, refer to the start of
Chapter 12 that shows you how to install SQL
Server Express Edition as well as SQL Server
Management Studio Express Edition. If you’re using
a different database server, or if you only have SQL Server Local DB Edition installed and don’t
want to install SQL Server Express, look at the section “Moving Data to a Remote Server” later in
this chapter and look at Appendix B, which explains how to configure a different SQL Server.
To modify the connection string, open up Web.config and replace both occurrences of
(LocalDB)v11.0 in the connection strings with .SqlExpress. This targets a named instance
of SQL Server called SqlExpress on the local machine (identified by the dot (.)). In addition, add
User Instance=True to both connection strings to run SQL Server under the same user account
as the website. Your connection strings should end up like this:
9. If you are using IIS on a machine that has SQLServer Express, the final thing you need to do ismodify your connection strings. If you don’t haveSQL Server Express installed, refer to the start ofChapter 12 that shows you how to install SQLServer Express Edition as well as SQL ServerManagement Studio Express Edition. If you’re usinga different database server, or if you only have SQL Server Local DB Edition installed and don’twant to install SQL Server Express, look at the section “Moving Data to a Remote Server” later inthis chapter and look at Appendix B, which explains how to configure a different SQL Server.To modify the connection string, open up Web.config and replace both occurrences of(LocalDB)v11.0 in the connection strings with .SqlExpress. This targets a named instanceof SQL Server called SqlExpress on the local machine (identified by the dot (.)). In addition, addUser Instance=True to both connection strings to run SQL Server under the same user accountas the website. Your connection strings should end up like this:
การแปล กรุณารอสักครู่..
