Quantcast
Channel: Forums - ArcGIS for Desktop - General
Viewing all articles
Browse latest Browse all 2328

Query Layers Uderlying DBMS error

$
0
0
Hi,

I have to add the following Query Layer:

Code:

SELECT dbo.PLOTS.ID, dbo.PLOTS.LOCATION, dbo.DSSRESULTS.ID, dbo.DSSRESULTS.PLOTID, dbo.DSSRESULTS.RUNDATE
FROM dbo.PLOTS INNER JOIN
dbo.DSSRESULTS ON dbo.PLOTS.ID = dbo.DSSRESULTS.PLOTID INNER JOIN
(SELECT PLOTID, MAX(RUNDATE) AS mts
FROM dbo.DSSRESULTS
GROUP BY PLOTID) AS dss2 ON dss2.PLOTID = dbo.DSSRESULTS.PLOTID AND dbo.DSSRESULTS.RUNDATE = dss2.mts

Although, in SQL Management Studio it runs Ok, without errors, when I added it to ArcMap there is an "Uderlying DBMS error"...

Where m I wrong?

Thanks in advanced!

Viewing all articles
Browse latest Browse all 2328

Trending Articles