I am trying to write a query that queries 2 different databases on 2 different Servers. I am using SQL Server 2000.
I have linked MS Access tables to the SQL Server Tables in order to build the query easily. I built the query but it is not working in SQL Server.
If anyone can help with this query Id very much so appreciate it
I have linked MS Access tables to the SQL Server Tables in order to build the query easily. I built the query but it is not working in SQL Server.
If anyone can help with this query Id very much so appreciate it
Code:
SELECT DISTINCT [dbo_Environmental Safety Solutions$Item].[Common Item No_], [dbo_Environmental Safety Solutions$Item].Description, dbo_drawingCheckout.checkoutStatus
FROM [dbo_Environmental Safety Solutions$Item] INNER JOIN dbo_drawingCheckout ON [dbo_Environmental Safety Solutions$Item].[Common Item No_] = dbo_drawingCheckout.drawNo
WHERE ((([dbo_Environmental Safety Solutions$Item].[Common Item No_])<>'') AND ((dbo_drawingCheckout.checkoutStatus)="P"))