I was having some trouble defining a "loopback linked server" in MS SQL Server 2005. By "loopback" I mean a Linked Server on a specific SQL2005 instance that actually links to the very same instance (albeit to a different DB)
No matter which tricks I tried using in the "New Linked Server" dialog box in the new Microsoft SQL Server Management Studio, I just couldn't get my SQL Server 2005 instance to link to itself.
Finally, I have the solution - Instead of using the Management Studio's UI, I ran the matching stored procedure: sp_addlinkedserver. This immideately defined a working loopback linked server just like I wanted.
Here's the syntax I used:
EXEC sp_addlinkedserver @server = N'name_for_linked_server',
@srvproduct = N' ',
@provider = N'SQLNCLI',
@datasrc = N'name_of_my_sqlserver_instance',
@catalog = N'name_of_database'
Hope this helps.
Uri