How do I separate the web application (built in ASP.NET) and database (built in SQL Server 2005), so that we could have multiple version of the web application running on different servers?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Database: your best two options here are to:
generate SQL scripts. This will allow you to run a bunch of
CREATEstatements against as many SQL Server instances as you need. Use the SQL Server Generate Scripts commandcreate a backup of your current database. This will give you a .BAK file. For each SQL Server instance you need, here are two article to restore from backup: Create a New Database From an Existing Backup from MSDN and Restore a SQL Server database to a New Server from TechRepublic onto.
Web app: copy the application or deploy with Visual Studio to your targets. The target could be another directory on the server, or another machine entirely. Ensure your connection string points to the correct instance.