<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>17 Apr 2015 22:33:00 Z</lastBuildDate><pubDate>17 Apr 2015 09:23:00 Z</pubDate><description>Hi,&#13;
&#13;
I have a table in MSSQL connected via OLEDB that has a column (uniqueidentifier) that has the option "Allow Nulls" marked.&#13;
&#13;
The analysis of the project from this table also displays this option set correctly.&#13;
[attachment 1450 Analysis.png]&#13;
&#13;
So this also looks ok.&#13;
&#13;
I create a record of the destination file&#13;
&#13;
TmpRecord is Record = {DestFile,indFile}&#13;
and I fill this record from other sources like this&#13;
&#13;
{"pRecord."+sFieldName} = sFieldValue&#13;
Now when I detect that there is a NULL value or 00000000-0000-0000-0000-000000000000 then I would like to also put a NULL in my record variable.&#13;
&#13;
I do this via:&#13;
&#13;
{"pRecord."+sFieldName}..Null = true also tried {"pRecord."+sFieldName} = null&#13;
But when I HADD or HMODIFY the record, I get an error:&#13;
&#13;
'HModify' function, syntax 1&#13;
&#13;
What happened?&#13;
OLE DB access error.&#13;
Error Number = 170137&#13;
&#13;
Failure saving value of &lt; xxxxxID &gt; item present in &lt;&gt; file.&#13;
Check whether items are supported by your provider.&#13;
Value = &lt;0&gt;&#13;
&#13;
Error code: 73001&#13;
Level: fatal error (EL_FATAL)&#13;
WD55 error code: 3001&#13;
&#13;
System error message:&#13;
Description = Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.&#13;
Source = Microsoft OLE DB Provider for SQL Server&#13;
Error Number = -2147217887 (0x80040e21)&#13;
&#13;
Dump of the error of 'WD190HF.DLL' module (19.0.102.2).&#13;
Identifier of detailed information (.err): 72801&#13;
Debugging information:&#13;
IEWDOLDB=113.9&#13;
Module=&#13;
Version=&lt;19.0.14.0&gt;&#13;
Provider: SQLOLEDB&#13;
User: xxxxxxx&#13;
Data source: xxxxxxxx&#13;
Database: xxxxxxxx&#13;
Unicode supported: 1&#13;
Page code of WL: 1252&#13;
Page code of the connection: UTF-16&#13;
&#13;
MDAC Version = &lt;6.1.7601.17514&gt;.&#13;
&#13;
[Data format]&#13;
Query Parameter Checked = &lt;0&gt; = &lt;&gt;&#13;
Query Parameter Needing conversion = &lt;96&gt; =&#13;
DecimalSeparator =&#13;
DateFormat =&#13;
&#13;
[Cursor settings Match]&#13;
LockType = , Location = , Type = , Capacities = &lt;10fef00&gt;&#13;
LockType = , Location = , Type = , Capacities =&#13;
LockType = , Location = , Type = , Capacities =&#13;
&#13;
[Recordset 1]&#13;
Settings = , Location = , Type = , Capacities = &lt;10fef00&gt;&gt;&#13;
CapacitiesSupported =&#13;
CapacitiesNotsupported =&#13;
HFFunctionsSupported =&#13;
HFFunctionsNotsupported = &lt;&gt;&#13;
&#13;
&#13;
Fonction (7,16)&#13;
Additional Information:&#13;
EIT_NATIVECODE : &lt;170137&gt;&#13;
EIT_ADOCODE : &lt;-2147217887&gt;&#13;
EIT_BASECODE : &lt;0&gt;&#13;
EIT_ODBCDESCRIPTION :&#13;
EIT_LOGICALTABLENAME :&#13;
EIT_PILEWL :&#13;
&#13;
When I set the record variable to GUID null string like this&#13;
&#13;
{"pRecord."+sFieldName} = "00000000-0000-0000-0000-000000000000"&#13;
Then this works, but in the DB the value is not NULL but a blanco GUID !&#13;
&#13;
&#13;
How can I set a real NULL via a record variable via HADD or HMODIFY to a certain column ? This should be possible i guess :confused: What I'm doing wrong here ?&#13;
&#13;
Thanks&#13;
Danny</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51578-wb19-setting-null-via-record-mssql-nullable-column/read.awp</link><title>[WB19] setting NULL via Record to MSSQL nullable Column</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/51578-wb19-setting-null-via-record-mssql-nullable-column-51599/read.awp</comments><pubDate>17 Apr 2015 22:33:00 Z</pubDate><description>Hi Danny,&#13;
&#13;
I suggest you check with Tech Support...&#13;
Alternatively, to move on until you have (or will never have) an answer f…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51578-wb19-setting-null-via-record-mssql-nullable-column-51599/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51578-wb19-setting-null-via-record-mssql-nullable-column-51599/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51578-wb19-setting-null-via-record-mssql-nullable-column/read.awp">[WB19] setting NULL via Record to MSSQL nullable Column</source><title>Re: [WB19] setting NULL via Record to MSSQL nullable Column</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51578-wb19-setting-null-via-record-mssql-nullable-column-51589/read.awp</comments><pubDate>17 Apr 2015 15:46:00 Z</pubDate><description>i never used it with nulls, can you check in the SQL Server Management Studio or using some tool like wireshark what is the SQL …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51578-wb19-setting-null-via-record-mssql-nullable-column-51589/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51578-wb19-setting-null-via-record-mssql-nullable-column-51589/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51578-wb19-setting-null-via-record-mssql-nullable-column/read.awp">[WB19] setting NULL via Record to MSSQL nullable Column</source><title>Re: [WB19] setting NULL via Record to MSSQL nullable Column</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51578-wb19-setting-null-via-record-mssql-nullable-column-51587/read.awp</comments><pubDate>17 Apr 2015 13:47:00 Z</pubDate><description>Peter,&#13;
&#13;
Assigning a ansitounicode(charact(0)) does not work either ? Same error. :-(&#13;
&#13;
Paulo,&#13;
&#13;
Yes the MSSQL datatype is an…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51578-wb19-setting-null-via-record-mssql-nullable-column-51587/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51578-wb19-setting-null-via-record-mssql-nullable-column-51587/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51578-wb19-setting-null-via-record-mssql-nullable-column/read.awp">[WB19] setting NULL via Record to MSSQL nullable Column</source><title>Re: [WB19] setting NULL via Record to MSSQL nullable Column</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51578-wb19-setting-null-via-record-mssql-nullable-column-51581/read.awp</comments><pubDate>17 Apr 2015 10:41:00 Z</pubDate><description>why null in one uniqueidentifier field?&#13;
&#13;
what is the data type of this field in the mssql database?</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51578-wb19-setting-null-via-record-mssql-nullable-column-51581/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51578-wb19-setting-null-via-record-mssql-nullable-column-51581/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51578-wb19-setting-null-via-record-mssql-nullable-column/read.awp">[WB19] setting NULL via Record to MSSQL nullable Column</source><title>Re: [WB19] setting NULL via Record to MSSQL nullable Column</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51578-wb19-setting-null-via-record-mssql-nullable-column-51580/read.awp</comments><pubDate>17 Apr 2015 10:31:00 Z</pubDate><description>Hi Danny,&#13;
&#13;
Not sure if this would help but did you try assigning the character directly based on the encoding scheme:&#13;
E.g. :&#13;…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51578-wb19-setting-null-via-record-mssql-nullable-column-51580/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51578-wb19-setting-null-via-record-mssql-nullable-column-51580/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51578-wb19-setting-null-via-record-mssql-nullable-column/read.awp">[WB19] setting NULL via Record to MSSQL nullable Column</source><title>Re: [WB19] setting NULL via Record to MSSQL nullable Column</title></item></channel></rss>
