<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>23 Jul 2015 08:07:51 Z</lastBuildDate><pubDate>23 Jul 2015 08:07:51 Z</pubDate><description>Hello,&#13;
&#13;
I modified the WXReplication module by Fabrice Harari to access SQL Server database.  Added the following connection method, if SQL Server&#13;
&#13;
		:m_cnxHFCSRealConnection..Provider = "SQLOLEDB"&#13;
		:m_cnxHFCSRealConnection..User = INIRead("DB","User","sa",:m_ccsIniFile)&#13;
		:m_cnxHFCSRealConnection..Password = INIRead("DB","Password","a123#",:m_ccsIniFile)&#13;
		:m_cnxHFCSRealConnection..Server = INIRead("DB","Server","localhost",:m_ccsIniFile)&#13;
		:m_cnxHFCSRealConnection..Database = INIRead("DB","DBName",cstDBName,:m_ccsIniFile)&#13;
		//:m_cnxHFCSRealConnection..CryptMethod = hCryptRC5_16&#13;
		:m_cnxHFCSRealConnection..Access= hOReadWrite&#13;
		//MyConnection..ExtendedInfo = "CRYPT=RC5_16"&#13;
		IF HOpenConnection(:m_cnxHFCSRealConnection)=False THEN&#13;
			Info(HErrorInfo)&#13;
			:SetHError()&#13;
			RESULT False&#13;
		END&#13;
&#13;
It connects and works fine as far as new record (inserts) are concerned.   I get error if I edit the same record, after WXREngine sends that data.  ie I edit one record (tried with color file) and WXREngine sends that data and I again edit the same record, It doesn't get saved, instead the following error appears.  The following error I get&#13;
&#13;
Error at line 23 of Method hModify Process.&#13;
HModify function called.&#13;
OLE DB access error.&#13;
Error Number = 170147&#13;
&#13;
Faiulure updating record in database&#13;
&#13;
System error details:&#13;
	Description = Query timeout expired&#13;
	Source = Microsoft OLE DB Provider for SQL Server&#13;
	SQL State = HYT00&#13;
	Error Number = -2147467259 (0x800004005)&#13;
&#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 (ox80040e21)&#13;
&#13;
and the software quits.   Hope some locking is happening on that particular record (by WXREngine) that prevents the WXReplication screen to update the record.    &#13;
&#13;
If I edit the same record, before the WXREngine sending the packets, there is no such problem.   &#13;
&#13;
As I'm new to WX products, I couldn't locate the error, which is causing this problem.    Any suggestion to solve this problem is really appreciable.&#13;
&#13;
Happiness Always&#13;
BKR Sivaprakash</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53195-wxreplication-and-sql-server/read.awp</link><title>WXReplication and SQL Server</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
