Is there a way in SQLServer2000 to select data via a database name Alias?
I would like to join two tables on different databases (or even different servers), but I don't want to change all the server.databasename.owner table prefixes everytime the script is run on a different server...
So, can 'SELECT server1.databasename1.owner1.table1.col1 ...' be changed into 'SELECT dbalias1.table1.col1 ...' ?
Thanks for your help,
Hugo.
I would like to join two tables on different databases (or even different servers), but I don't want to change all the server.databasename.owner table prefixes everytime the script is run on a different server...
So, can 'SELECT server1.databasename1.owner1.table1.col1 ...' be changed into 'SELECT dbalias1.table1.col1 ...' ?
Thanks for your help,
Hugo.