Board index » delphi » Delphi4 and msSQL Server
assaf
![]() Delphi Developer |
Fri, 19 Oct 2001 03:00:00 GMT
Delphi4 and msSQL Server
I'm trying to append/insert records with an Identiy field (as primary key)
with TTable. But Delphi(4) doesn't recognize this field as an Auto Increament field. I even tried to append records with the SQL Explorer, but it didnt work. I think that the problem is that the BDE doesn't recognize this field as an AutoIncreasment and therefore doesnt allow me to append record without giving this field a value, and if i give this field a value the sql server araise execption for trying to set a value to an Auto Increasment field. i tried to use the AfterPost and AfterInsert Event in order to reset this field value but it didnt work. Does anybody knowns what the problems is, and how can i append records that |