Solved

Can SQLExpress be used as an alias that switches between SQLServer 2005 Express and SQL Server 2008 Express

Posted on 2011-03-03
3
526 Views
Last Modified: 2013-11-05
This is what I would like to do:

1. Install SQL Express 2005 and name the instance SQLExpress2005.
2. Install SQL Express 2008 and name the instance SQLExpress2008.

When I want to work on a project that uses SQLExpress2005, I would like to create an alias called SQLExpress that points to SQLExpress2005.
When I want to work on a project that uses SQLExpress2008, I would delete and re-create the alias SQLExpress so that it points to SQLExpress2008.

Is this possible? Is this a bad or good idea?
0
Comment
Question by:dmoss123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Expert Comment

by:dwkor
ID: 35030369
Use Connection strings in config file (http://msdn.microsoft.com/en-us/library/ms254978.aspx) and simply switch server name from one server to another.

You can see some examples here: http://www.connectionstrings.com/sql-server-2005
0
 

Author Comment

by:dmoss123
ID: 35030826
dwkor, normally that would be good advice, but in this case my reason for using an alias is to avoid having to modify the connection strings.
0
 
LVL 13

Accepted Solution

by:
dwkor earned 500 total points
ID: 35031011
Are you looking for something like that?

http://www.mssqltips.com/tip.asp?tip=1620
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question