ADO and Autoinc

I am using MQ SQL and Access tables. In MS-SQL, I use the identity clause with a LongInt to allow for autoincrementing. When I use Access, I use the AutoInc datatype.

I would like to use either Access or MS-SQL tables from within my program. However, the datatypes are stored differently within the form. Depending on the database used, one is stored AutoInc and the other is LongInt.

Is there anyway to rectify this problem? (i.e. can I make Delphi think they are both LongInt without losing the AutoInc capability?)
LVL 2
CalvinDayAsked:
Who is Participating?
 
BlackTigerXConnect With a Mentor Commented:
you can treat both of those ase LongInt in your Delphi code
0
 
BlackTigerXCommented:
AutoInc field is actually defined as:

TAutoIncField = class(TIntegerField)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.