migrating from ado to sdac identity columns don't seem the get the datatype ftAutoInc anymore.
Code: Select all
qu.SQL.Text := 'select identity(int) AS x INTO #temp; SELECT * FROM #temp';
qu.Open;
Writeln(System.TypInfo.GetEnumName(TypeInfo(TFieldType), Integer(qu.Fields[0].DataType)));
Now my guess is that using ftAutoInc is a bad idea to begin with or why does sdac differ from ado in this point? If so an explanation would be nice.