Accessing sql server’s table from remote database
For instance, you have a data on remote/other database and you want to migrate it onto your local sql server’s database. If you use this query select * ServerName.DataBaseName.dbo.TableName you’ll find an error saying that the database cannot be found. That’s what i faced yesterday.
So you have to execute the query ” execute sp_addlinkedserver database_name just like what the error message suggested. It should then worked fine And you’ll be able to access the tables and databases from that remote database server.
Above method only works if you have two sql servers with identical name.
Tags: sql server, sql problem, ms sql