<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>29 Dec 2008 15:27:39 Z</lastBuildDate><pubDate>24 Dec 2008 11:51:42 Z</pubDate><description>Hi, i want to update a datetime-field in a mssql database.&#13;
If I update fields directly, I can just use &#13;
myTable.myField = DateSys+TimeSys&#13;
HModify(myTable)&#13;
To speed things up, when updating many records, I want to use HExecuteQuery(). &#13;
I made a simple update-query and use a parameter for the field I want to update.&#13;
myQuery.Param1 = DateSys+TimeSys&#13;
HExecuteQeury(myQuery)&#13;
This will give me an error!! "Conversion failed when converting datetime from character string".&#13;
Do i need pre-format the query-parameter? &#13;
I'm using WD12 and OLEDB.&#13;
Arie</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/17045-mssql-date-and-time/read.awp</link><title>MSSQL - date and time</title><managingEditor>moderateur@pcsoft.fr (Le modérateur)</managingEditor><webMaster>webmaster@pcsoft.fr (Le Webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/17045-mssql-date-and-time-17077/read.awp</comments><pubDate>29 Dec 2008 15:27:39 Z</pubDate><description>A safe format string to pass to SQL Server to populate a datetime field is:&#13;
'YYYY-MM-DDTHH:MM:SS'&#13;
Note the "T" between the dat…</description><guid isPermaLink="true">https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/17045-mssql-date-and-time-17077/read.awp</guid><link>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/17045-mssql-date-and-time-17077/read.awp</link><source url="https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/17045-mssql-date-and-time/read.awp">MSSQL - date and time</source><title>Re: MSSQL - date and time</title></item></channel></rss>
