Hello.
I use delphi 7, MS SQL server 2005 and try to use other version of sdac.
When set compatibility level 80 on database all good. When I insert record into view, I see id of new record and i can to update or delete this record.
When set compatibility level 90 I have a problem. When I insert record into view, I don't see id of new record on old version of sdac (3.80) and on new version i have error (refresh faild. Found 0 records)
I can't use manual insert and refresh because i have big project with use sdac 3.80.
Anyone have ideas how i can use compatibility level 90 and sdac
Problem with insert, autorefresh
Thank you for information.
The problem is that when you insert record in view, then a new value of autoincrement field is not returned, and in refresh query the NULL value is included.
To solve the problem you should set the SQLRefresh property, like this:
The problem is that when you insert record in view, then a new value of autoincrement field is not returned, and in refresh query the NULL value is included.
To solve the problem you should set the SQLRefresh property, like this:
Code: Select all
SELECT Id, name, productCatId
FROM products
WHERE name = :name and productCatId = :productCatId