Solved

ADO and Autoinc

Posted on 2004-08-18
2
290 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 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

28 Experts available now in Live!

Get 1:1 Help Now