Hello.
I'm trying to write a simple SQL statement where the WHERE clause calls another SQL server:
I'm trying to write a simple SQL statement where the WHERE clause calls another SQL server:
Code:
SELECT field1
FROM table1
WHERE field1
NOT IN (SELECT field1
FROM [Server2].[dbo].[DatabaseX].[Table1])
[code]
All I get is "Login failed for user '\'. " Both servers connect me as NT-authentication.
Thanks for pointing anything out of the ordinary.