MSQuery raises syntax error with "describe params" = true
Posted: Wed 15 Aug 2012 09:26
Hi all,
I have DescribeParams turned ON.
Next, I have this query:
When trying to prepare this query, SQL Server returns:
SQL Server Profiler says the following is issued:
Turning DescribeParams OFF and it works.
Apparently, the component mangles the statement pretty bad.
This is version 5.10.0.6
Can you check the latest version to see if the problem occurs?
With regards,
Martijn Tonies
I have DescribeParams turned ON.
Next, I have this query:
Code: Select all
SELECT Location_1.ECO_ID FROM Location Location_1 JOIN ECOModelRoot ECOModelRoot_1 ON (Location_1.TIMESTAMPSTART = ECOModelRoot_1.TIMESTAMPSTART AND ECOModelRoot_1.ECO_ID = Location_1.ECO_ID)
WHERE (2147483647 = ECOModelRoot_1.TIMESTAMPSTOP)
AND (UPPER(Location_1.Name) LIKE UPPER( :vMatchingText ))
Code: Select all
Incorrect syntax near ')'.
Code: Select all
set fmtonly on select Location_1.Name) from Location Location_1 JOIN ECOModelRoot ECOModelRoot_1 ON (Location_1.TIMESTAMPSTART =
ECOModelRoot_1.TIMESTAMPSTART AND ECOModelRoot_1.ECO_ID = Location_1.ECO_ID) where 1=2 set fmtonly off
Apparently, the component mangles the statement pretty bad.
This is version 5.10.0.6
Can you check the latest version to see if the problem occurs?
With regards,
Martijn Tonies