<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>31 Oct 2019 12:24:16 Z</lastBuildDate><pubDate>28 Oct 2019 11:53:16 Z</pubDate><description>Hope someone can help please.&#13;
&#13;
MSSQL native driver (wd230sqlserver2_64.DLL  flavour)&#13;
&#13;
Why does this code:&#13;
======================&#13;
// Is there a roadside vehicle already?&#13;
	HReadSeekFirst(Vehicles, Registration, ivh.ITEM )	&#13;
	WHILE HOut(Vehicles) = False&#13;
		IF Vehicles.Registration &lt;&gt; ivh.ITEM THEN  // Possibly don't need this.&#13;
			BREAK&#13;
		END&#13;
		IF Vehicles.PlateType ~= dbm.STATE THEN&#13;
			bVehicleFound = True&#13;
			BREAK&#13;
		END&#13;
		HReadNext(Vehicles, Registration)&#13;
	END&#13;
	&#13;
	// If the vehicle is not found.&#13;
	IF bVehicleFound = False THEN&#13;
		HReset(Vehicles)&#13;
		Vehicles.CreatedDate = SysDateTime()&#13;
		Vehicles.LastModifiedDate = SysDateTime()		&#13;
		Vehicles.Registration = itm.ITEM&#13;
		Vehicles.PlateType    = dbm.STATE&#13;
		Vehicles.Make         = itm.MAKE&#13;
		Vehicles.Model        = itm.MODEL&#13;
		Vehicles.YearOfManufacture = itm.BUILDYEAR		&#13;
		Vehicles.Colour = ""&#13;
		Vehicles.Features = ""&#13;
		Vehicles.VehicleNotes = ""&#13;
		Vehicles.VehicleType = ""&#13;
		Vehicles.DFR = ""&#13;
		Vehicles.FleetID = ""&#13;
	&#13;
		IF HAdd(Vehicles) = False THEN&#13;
			WriteError(ErrorInfo(errCode),ErrorInfo(errMessage),"RS - VEHICLES record failed to create for rego: " + itm.ITEM + ". IVH: " + ivh.UUID + " ITM: " + ivh.ITM_UUID + " DBM: " + itm.DBM_UUID)		&#13;
			RETURN	&#13;
		END&#13;
// and so on&#13;
======================&#13;
&#13;
&#13;
&#13;
Produces the following error on the HADD(Vehicles):&#13;
======================&#13;
What happened?&#13;
native SQLSERVER access error (lock).&#13;
Error Number = 22 &#13;
 &#13;
L'erreur suivante a été renvoyée par la base de données &lt;utamssql.ultratune.com.au&gt; :&#13;
Numéro d'erreur = &lt;-1&gt;.&#13;
Message d'erreur :&#13;
&#13;
Description = [Microsoft][SQL Server Native Client 11.0][SQL Server]Lock request time out period exceeded.&#13;
SQL State = 42000&#13;
Native Error Code = 1222&#13;
&#13;
&#13;
Error 2&#13;
Description = [Microsoft][SQL Server Native Client 11.0][SQL Server]The statement has been terminated.&#13;
SQL State = 01000&#13;
Native Error Code = 3621&#13;
&#13;
Error code: 70100&#13;
Level: non-fatal error&#13;
WD55 error code: 100&#13;
&#13;
Dump of the error of 'wd230hf64.dll' module (23.0.62.0).&#13;
Identifier of detailed information (.err): 72802&#13;
Debugging information:&#13;
Texte de la requête : INSERT INTO "Vehicles" ("CreatedDate","LastModifiedDate","Registration","Make","Model","YearOfManufacture","BodyTypeID","Colour","TransmissionID","DriveTypeID","ModificationID","Features","Inactive","VehicleNotes","VehicleType","DFR","PlateType","FleetID") VALUES ( , , , , , , , , , , , , , , , , ,  )&#13;
Nombre de paramètres : =18&#13;
Paramètre  0 :	Type WLangage : 26 = &lt;20191028164035069&gt;&#13;
Paramètre  1 :	Type WLangage : 26 = &lt;20191028164035069&gt;&#13;
Paramètre  2 :	Type WLangage : 19 = &lt;CZN20Q&gt;&#13;
Paramètre  3 :	Type WLangage : 19 = &lt;LEXUS&gt;&#13;
Paramètre  4 :	Type WLangage : 19 = &lt;NX200T&gt;&#13;
Paramètre  5 :	Type WLangage : 19 = &lt;2015&gt;&#13;
Paramètre  6 :	Type WLangage : 8 = &lt;0&gt;&#13;
Paramètre  7 :	Type WLangage : 19 = &lt;&gt;&#13;
Paramètre  8 :	Type WLangage : 8 = &lt;0&gt;&#13;
Paramètre  9 :	Type WLangage : 8 = &lt;0&gt;&#13;
Paramètre  10 :	Type WLangage : 8 = &lt;0&gt;&#13;
Paramètre  11 :	Type WLangage : 19 = &lt;&gt;&#13;
Paramètre  12 :	Type WLangage : 1 = &lt;0&gt;&#13;
Paramètre  13 :	Type WLangage : 19 = &lt;&gt;&#13;
Paramètre  14 :	Type WLangage : 19 = &lt;&gt;&#13;
Paramètre  15 :	Type WLangage : 19 = &lt;&gt;&#13;
Paramètre  16 :	Type WLangage : 19 = &lt;NSW&gt;&#13;
Paramètre  17 :	Type WLangage : 19 = &lt;&gt;&#13;
&#13;
IEWDSQS=107.3&#13;
Module=&lt;WDSQS&gt;&#13;
Version=&lt;23.0.2.0&gt;&#13;
Couche client : C:\windows\SYSTEM32\sqlncli11.dll&#13;
Provider : WinDevSQLServer&#13;
Utilisateur : Builder&#13;
Source de données : utamssql.ultratune.com.au&#13;
Base de données : roadside&#13;
Timeout de connexion : 30&#13;
Timeout de commande : 30&#13;
Unicode supporté : 0&#13;
Code page du WL : 1252&#13;
Code page de la connexion : 1252&#13;
SQLRETURN = SQL_ERROR&#13;
HANDLE VALUE = 1352675635584&#13;
HANDLE TYPE = 3&#13;
Additional Information:&#13;
EIT_INFOCLIENT : &lt;11.00.7462&gt;&#13;
EIT_INFOSERVEUR : &lt;13.00.5426&gt;&#13;
EIT_BASECODE : &lt;1222&gt;&#13;
EIT_NATIVECODE : &lt;22&gt;&#13;
EIT_LOGICALTABLENAME : &lt;Vehicles&gt;&#13;
==========================&#13;
&#13;
I have tried HAdd(Vehicles, hNoLock) , but no difference.&#13;
The same code happily ran all day every day when ODBC (not native driver).&#13;
I except there are differences etc, but this is quiet strange to me being just HReset() then HAdd().&#13;
The ID of the created record is required later in the code, to associate a child of the vehicle.&#13;
&#13;
--&#13;
Michael Rusling&#13;
Rusling Programming Services</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67345-lock-error-mssql-native-driver/read.awp</link><title>Lock error. MSSQL native driver.</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>exelent.maglaj</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67345-lock-error-mssql-native-driver-67356/read.awp</comments><pubDate>31 Oct 2019 12:24:16 Z</pubDate><description>Hello.&#13;
MySQL specific features: &#13;
https://help.windev.com/en-US/?5517002&amp;name=native_mysql_connector_specific_features_and_rema…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67345-lock-error-mssql-native-driver-67356/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67345-lock-error-mssql-native-driver-67356/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67345-lock-error-mssql-native-driver/read.awp">Lock error. MSSQL native driver.</source><title>Re: Lock error. MSSQL native driver.</title></item></channel></rss>
