Solved

ADO and Autoinc

Posted on 2004-08-18
2
288 Views
Last Modified: 2010-04-05
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?)
0
Comment
Question by:CalvinDay
  • 2
2 Comments
 
LVL 13

Accepted Solution

by:
BlackTigerX earned 250 total points
ID: 11836576
you can treat both of those ase LongInt in your Delphi code
0
 
LVL 13

Expert Comment

by:BlackTigerX
ID: 11836610
AutoInc field is actually defined as:

TAutoIncField = class(TIntegerField)
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video discusses moving either the default database or any database to a new volume.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now