Question

I have a WebDAV query which search for e-mails on an Exchange 2003 server on field 'TestField' with the value '3'. This field contains data of the type Integer (an another application set this field with data type OlUserPropertyType.olInteger).

SELECT "TestField" FROM "http://server/exchange/mailbox/mialbox" WHERE "TestField" = 3 

I received always a "Bad Request (400)". On another fields with another data types (string) is works.

What is wrong in these? Must I cast the value but how can I do that?

Was it helpful?

Solution

Problem solved. Casting is the solution.

WHERE CAST("TestField" AS "int") = 3
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top