Reported By: Fred Schetterer Reported On: 2/25/2002 For: Version 3.06 Build 1
# 1037INNER JOIN Optimization on UPDATE or DELETE SQL Statements with More than One Join Causes 8708 Error I get the above error when attempting to run this SQL statement:
DELETE FROM User2Group INNER JOIN UserGroupList
ON
User2Group.UserGroupSID = UserGroupList.SID
INNER JOIN Servers
ON
UserGroupList.DomainController = Servers.Server
AND Servers.DomainName = 'DOMAIN';
Comments and WorkaroundsProblem was with the join optimization attempting to flip around these joins, thus causing a problem with the driver table being used for the deletion of records. The workaround was to stick a NOJOINOPTIMIZE clause at the end of the statement.
ResolutionFixed Problem on 2/26/2002 in version 3.07 build 1