Page 1 of 1

SDAC and MSSQL problem

Posted: Thu 05 Feb 2009 13:30
by scanc
Hello, i'm using SDAC components in my programs and the database is SQLServer based. using a MSQuery i have a problem because it extracts 2 record but when i do edit post it applies the update in 2000 records.

Query:
SELECT FIELD2, FIELD3, FIELD4, FIELD5 FROM TABLE WHERE FIELD1=:FIELD1

FIELD1, FIELD2, FIELD3 are the Keys of the table.

Why did it appens. should i try to set some options in the MSQuery component.

Thanks in advance
Matteo

Posted: Fri 06 Feb 2009 08:59
by Dimon
Please make sure that your table has the unique key, and all fields of this key are included in the SELECT statement of the query.