RE: Recordset Update -
11-21-2003
, 12:58 AM
Hi Daniela,
Thank you for using MSDN Newsgroup! It's my pleasure to assist you with your issue.
From your description, I understand that when the newly inserted rows are inserted and
updated, the error message pops up and in a result no rows are inserted into your table. Have
I fully understood you? If there is anything I misunderstood, please feel free to let me know.
Looking through your simplified code, I find no suspicious culprits that will prevent this newly
inserted rows from gracefully updating. However, I'm unsure of the "rs
("BUCHUNG_UHRZEIT")". Also I have few iedas of the target table in which your rows
inserted as well. It's maybe not related to the issue but please ensure that the operations of
inserting and updating are correct and there are no switches that will have an impact on the
insertions.
Based on my experience, if the rows get inserted, you have get ID (IDENTITY col values)
associated with this new row and generate a GUID and update SerialNumber column with this
newly generated GUID.
If you have a SQL Server table with a BEFORE-INSERT trigger (INSTEAD OF INSERT
Trigger) which controls the insertion operations, the symptom may occur and it allows no insert
operations. So please also make sure if there is any INSERT triggers on your target table.
Additionally, as we know, the DBPROP_CHANGEINSERTEDROWS property should be set
when you open a Keyset cursor and want to update a row that's been inserted newly. In this
scenario, I recommend you update the rows directly without any positioning.
Daniela, does this answer your question? If there is anything more I can do to assist you,
please feel free to post it in the group
Best regards,
Billy Yao
Microsoft Online Support
----------------------------------------------------
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only. Thanks. |