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
528 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

696 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