Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.
SELECT * FROM [Server1\SQLEXPRESS].[DB1].[dbo].[Table1] as Tbl1 WHERE Tbl.invoicecode IN (Values From Server 2)
SELECT * FROM [Server1\SQLEXPRESS].[DB1].[dbo].[Table1] as Tbl1 WHERE Tbl.invoicecode IN (SELECT Tbl2.invoicenumber FROM [Server2].[DB2.[dbo].[Table2] as Tbl2)
Msg 7202, Level 11, State 2, Line 1Thanks,
Could not find server 'Server1\SQLEXPRESS' in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers.
Join the community of 500,000 technology professionals and ask your questions.