How can I select data in the same query from two different databases that are on two different servers in SQL Server?
select * from [ServerName(IP)].[DatabaseName].[dbo].[TableName]