MSSQL Server "Field 'ID' cannot be modified

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Drewsky
Posts: 1
Joined: Wed 22 Dec 2021 11:10

MSSQL Server "Field 'ID' cannot be modified

Post by Drewsky » Wed 22 Dec 2021 11:26

Hi,

I am using TUniTable, Delphi 10.4 and MSSqlServer database. I am using DBTreeView and when I try to insert a new record (tree node) I get an error "Field 'ID' cannot be modified. If I set TUniTable.Options SetFieldsReadOnly to FALSE and the MSSQL Server does not accept the record. This works normally with MySQL database, which is identical in structure. Also the MSSQL server database works fine in all other aspects. Only the DBTreeView (I have tried multiple versions) is the problem.

Kind regards

zorino
Posts: 3
Joined: Fri 29 Oct 2021 14:45

Re: MSSQL Server "Field 'ID' cannot be modified

Post by zorino » Fri 18 Feb 2022 14:12

Hey,
same problem here... (without any DBTreeView)

Did u solve yours ?

pavelpd
Devart Team
Posts: 109
Joined: Thu 06 Jan 2022 14:16

Re: MSSQL Server "Field 'ID' cannot be modified

Post by pavelpd » Fri 25 Feb 2022 08:03

Hi,
We were unable to reproduce the "Field 'ID' cannot be modified" error you mentioned.
Please create an example application that reproduces the indicated error, with all the necessary DDL and DML scripts to create and populate the database, and send it to us via the e-support form: https://www.devart.com/company/contactform.html

Post Reply