MySQL ADO.Recordset.Update QQ

manthonylugo
Member Posts: 46
Hi Experts,
Am having this error whenever I run my code.
Here's my code:

Here's the error after it runs:

Although in my script or query I only use 1 table.
I did try using an updated version of MySQL Driver but I'm having difficulty connecting it in the server so I stick with the older one.
I don't know what to do, am going crazy for days now.
Hope you could help me out guys.
Thanks,
Marc
Am having this error whenever I run my code.
Here's my code:

Here's the error after it runs:

Although in my script or query I only use 1 table.
I did try using an updated version of MySQL Driver but I'm having difficulty connecting it in the server so I stick with the older one.
I don't know what to do, am going crazy for days now.
Hope you could help me out guys.
Thanks,
Marc
0
Best Answer
-
Hi,
Just to give an update on my concern, instead of using the Update function in ADO.Recordset, I create a storedprocedure to handle my updates instead and simply calling that storedproc on every iteration. well it gives the same performance so am okay with it.
Thanks for all the replies experts!0
Answers
-
Hi, Marc
Could you show details of "Query004"?Regards,
Yury0 -
Hi Yuri,
this is the value of txt constant.
SELECT in_id,in_Sender,in_receiver,DATE_FORMAT(in_datetime,'%m/%d/%y'),DATE_FORMAT(CONVERT_TZ(in_datetime,'+00:00','+08:00'),'%r'),in_msg,flg_csv FROM playsms_tblSMSInbox WHERE flg_csv = 0;0 -
Anyone?0
-
Maybe the playsms_tblSMSInbox is a view, not a table. Still the error does not make much sense as you are clearly reading the data.
What the Option=3 in your connection string does?
Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
Hi Slawek,
No sir it's a table. I can read all the record in it but when I add the update command it gives that error..What the Option=3 in your connection string does?
What option=3 sir?0 -
The part of your connection string:
Why did you put it in your connection string and what it is supposed to do?
Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
Ohh, I just found that on connectionstrings.com
Here:
0 -
But I don't think it has a connection for the Recordset.Update functionality.0
-
Option=3 is supposed to set some behaviour of the ODBC driver. What if it is some sort of logging, which implies inserting or updating data? I don't know, just guessing. Having googled around shortly I didn't find anything about this parameter, so I wonder if you know what it is supposed to do.
connectionstrings.com includes samples, but no explanation.Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
Hi,
Just to give an update on my concern, instead of using the Update function in ADO.Recordset, I create a storedprocedure to handle my updates instead and simply calling that storedproc on every iteration. well it gives the same performance so am okay with it.
Thanks for all the replies experts!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions