Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2003-05-08 : 08:05:14
|
| Tom writes "I'm a former Oracle DBA, and use to create db aliases. How do I create a db alias in SQL Server 2000?We have a DB on two servers. The first is a development server, the second production. the DB names are different for that reason. However, we want to use the same alias names in our programs so access either DB depending on which server the application is running on.These are web applications, and the DB in questions is a master DB of referrence tables.Thanks in advance.Tom" |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2003-05-08 : 08:06:57
|
| If they're on 2 different servers, why name the databases differently? Make them both the same name, and just change the code to connect to the production server when you're done testing. |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2003-05-08 : 12:28:01
|
| You can only alias a server name (can easily be done using Client Network Utility). You could alias a database through your application (through a registry entry, ini file, xml file, etc...), but what would be the point anyway? If the databases are on separate servers, then why bother?Tara |
 |
|
|
|
|
|