Kevin writes "I want to be able to write T-SQL stored procedures which refer to objects in another database, on another machine without having to specify both the server name and the database name. I want to do this because the machine which holds the SQL Server database changes from multiple development environments to testing environments to live. Also, usually the name of the database changes.
I have setup a linked server and this solves the changing server problem, but I would really like to specify the database in the linked server so that I dont have to refer to it explicitly in my T-SQL as follows:
Is it possible to setup the linked server so that I can refer to remote database objects like:
or something similar?
I am using SQL Server 2000 running on Windows 2000 and need to refer to both SQL Sever 2000 and SQL Server 7 databases.
Any help is much appreciated!"