Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / database / SQL-Server

Install SQL Server 2005 and 2008 on the same computer

5.00/5 (1 vote)
6 Nov 2011CPOL 30.7K  
Installing SQL Server 2005 and 2008 in the same computer.

By following the steps described, you can have both SQL Server 2005 and 2008 installed on a machine at the same time. The trick is simple, just change a Registry directory name of SQL Server 2005 Studio with the Registry editor. After the installation, you can then change it back.



  1. Go to Windows > Run, enter “regedit” and click OK.
  2. Browse to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsft SQL Server\90.
  3. Rename “90? to something else, like “old”.

You can now rerun the process in SQL Server 2008 Express installation wizard. After installation has completed, you will notice that the old SQL Server 2005 doesn’t run when you try to launch it. No worries, to fix it, you can change the newly created directory “90? to “70?. Then change “old” that you changed from “90? before back to “90?. It should now work for both SQL Server 2005 and 2008 Studio Express.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)