<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>6 Sep 2017 18:47:00 Z</lastBuildDate><pubDate>5 Sep 2017 01:01:00 Z</pubDate><description>Hi,&#13;
&#13;
I use SQL Server for my backend database with windev and it appears that WD 22 no longer allows certain SQL syntax that worked in previous versions.&#13;
&#13;
1. using CONVERT in a SELECT statement now gives a syntax error.&#13;
&#13;
example: CONVERT(int,Booking_passenger.Room_Number) AS Room_Number_Int,&#13;
&#13;
In the above example the IDE gives an "unexepected word" error on the second ")".&#13;
&#13;
2. Using DATEPART no longer works in a WHERE clause.&#13;
&#13;
example: DATEPART(year, Booking_History.Departure_Date) = {pYearNUmber}&#13;
&#13;
in the above example "year" gives the error "year item unknown in file".&#13;
&#13;
I've contacted technical support but I wonder if anyone else has run into this?&#13;
&#13;
Thanks&#13;
&#13;
steve</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62532-sql-syntax-not-supported/read.awp</link><title>SQL Syntax not supported in WD 22</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62532-sql-syntax-not-supported-62578/read.awp</comments><pubDate>6 Sep 2017 18:47:00 Z</pubDate><description>Update... you can use these, but must select from within report description.&#13;
&#13;
Additionally, these queries now need to be run u…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62532-sql-syntax-not-supported-62578/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62532-sql-syntax-not-supported-62578/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62532-sql-syntax-not-supported/read.awp">SQL Syntax not supported in WD 22</source><title>Re: SQL Syntax not supported in WD 22</title></item><item><author>Philippe SB</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62532-sql-syntax-not-supported-62557/read.awp</comments><pubDate>6 Sep 2017 05:28:02 Z</pubDate><description>Hi,&#13;
&#13;
Do you use hQueryWithoutCorrection when you are executing you queries ?&#13;
&#13;
The doc says:&#13;
[code:text]&#13;
CONVERT is used to…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62532-sql-syntax-not-supported-62557/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62532-sql-syntax-not-supported-62557/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62532-sql-syntax-not-supported/read.awp">SQL Syntax not supported in WD 22</source><title>Re: SQL Syntax not supported in WD 22</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62532-sql-syntax-not-supported-62545/read.awp</comments><pubDate>5 Sep 2017 21:08:00 Z</pubDate><description>It appears that while the queries give warnings they will execute.&#13;
&#13;
However, queries saved as SQL are no longer available to b…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62532-sql-syntax-not-supported-62545/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62532-sql-syntax-not-supported-62545/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62532-sql-syntax-not-supported/read.awp">SQL Syntax not supported in WD 22</source><title>Re: SQL Syntax not supported in WD 22</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62532-sql-syntax-not-supported-62535/read.awp</comments><pubDate>5 Sep 2017 08:22:00 Z</pubDate><description>Hi Steve,&#13;
&#13;
As an alternative to 1 you may want to use CAST instead of CONVERT.&#13;
CAST(Booking_passenger.Room_Number as int) AS …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62532-sql-syntax-not-supported-62535/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62532-sql-syntax-not-supported-62535/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62532-sql-syntax-not-supported/read.awp">SQL Syntax not supported in WD 22</source><title>Re: SQL Syntax not supported in WD 22</title></item></channel></rss>
