> Geoff (
butt...@nomail.com) writes:
>> I added SQL2005 server to the linked server in both ServerA and and
>> ServerB. SQL 2005 shows up in the linked servers area of them both. I
>> can actually see the tables and views in the linked servers area on both
>> ServerA and ServerB (I have data access temporarily enabled for testing
>> purposes.) But when I run query analyzer (for a simple test query) on
>> both ServerA and ServerB, it fails and returns this.
>>
>> Server: Msg 7202, Level 11, State 2, Line 1
>> Could not find server 'Server_2005' in sysservers. Execute
>> sp_addlinkedserver to add the server to sysservers.
>>
>
> So this error means that yot have not defined any server with the
> name Server_2005 on these servers.
>
> Since I don't see your actual server names, and your actual query, I
> can't really say where you went wrong, but I would suspect it's a
> trivial spelling error.
>
> When you defined a linked server, it can be as simple as:
>
> EXEC sp_addlinkserver 'THATSERVER'
>
> And then you are able to connect to THATSERVER with queries like:
>
> SELECT name FROM THATSERVER.master.dbo.sysdatabases
>
> But a linked server is really only an alias, so you can say:
>
> EXEC sp_addlinkedserver 'MYALIAS, '', 'SQLOLEDB', 'THATSERVER'
>
> And now you can run queries on THATSERVER like this:
>
> SELECT name FROM MYALIAS.master.dbo.sysdatabases
I enable RPC out and setup a login that I created on the 2005 machine. AGAIN