Code differentiating between SQL Server 2000 and SQL Server 2005
If SQL Server 2000 and SQL Server 2005 run on the same server, how can your code differentiate which database to use? Can you give the new instance of SQL a different name?

Software/Hardware used:
ASKED: June 30, 2008  7:28 PM
UPDATED: July 2, 2008  6:46 AM

Answer Wiki:
The instance would need to have a different name. If you install SQL 2005 on the same server that already has SQL 2000 installed and you use the same instance the instance will be upgraded from SQL 2000 to SQL 2005. Within your connection string where you specify the server name you specify the instance name as well. <pre>Default Instance: SERVERNAME Named Instance: SERVERNAMEINSTANCE_NAME</pre>
Last Wiki Answer Submitted:  July 2, 2008  6:46 am  by  Denny Cherry   64,550 pts.
All Answer Wiki Contributors:  Denny Cherry   64,550 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Check out my SQL Server blog “SQL Server with Mr Denny” for more SQL Server information.

 64,550 pts.