Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The easy answer: change the connection string for your data layer (Linq to SQL?) in the web.config to point to your out-of-process database instance.</p> <p>In more detail, here are the steps I took to split the database out of my site on my development box. By doing the following, you can test the two-server configuration locally before deploying it to production.</p> <ol> <li><a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=8961" rel="nofollow noreferrer">Install SQL Server Management Studio</a></li> <li>Open Management Studio and connect to your local SQL Server Express instence (typicaly [boxname]/SQLEXPRESS)</li> <li>Right-click on the Databases folder in Management Server and select Attach...</li> <li>Locate your .mdf file in you project and open it.</li> <li>Rename the newly attached database to what you want it called.</li> <li>Give whatever service account your IIS application pool runs under permissions to the database. First create an account under the top level Security/Logins folder, and then add that account to the new database's Security/Users folder. For my configuration, I am using NETWORK SERVICE.</li> </ol> <p>Now that your database is mounted as a stand-alone database in SQL Server Express, you can connect to the database using a <a href="http://www.connectionstrings.com/sql-server-2005" rel="nofollow noreferrer">normal SQL Server connection string</a>.</p> <p>At this point, your development environment is simulating the production environment where the database and the IIS process are split. You only have to change your connection string in production to point to the production database.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload