I have two databases one remote and the local ... the remote db has an ip address lets say
Data Source = 172.16.10.118;
Database = AGD;
user id = payrol;
password = p_11t@x123
I tried this below but did not work
USE [172.16.10.118]
GO
SELECT [AGD].dbo.[AID]
,[UID]
,[VoteCode]
FROM [dbo].[Assignments]
GO
.. how do i solve this riddle