Advertisement

11.12.2007 at 12:51AM PST, ID: 22954004
[x]
Attachment Details

Delphi 7 :: MS SQL 2005 Express :: AutoIncrement Field Problem

Asked by Marius0188 in Delphi Database, Databases Miscellaneous, Delphi Programming

Tags: sql, auto, increment, 2005, autoincrement

Hi Experts,

I have created a demo db and table in SQL 2005 Express for testing purposes.
My primary key field is set to a 'uniqueidentifier' data type.

Will this field auto increment on each insert?
I am using Delph 7, ADO Components and TDBGrid to insert data for testing.
On inserting a new row I receives the error message telling me that I can not insert VALUE NULL into column DemoID.

How do you manage auto increment fields in Delphi 7, SQL 2005 Express and ADO.


Thanks in advance!Start Free Trial
[+][-]11.12.2007 at 12:56AM PST, ID: 20262854

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Delphi Database, Databases Miscellaneous, Delphi Programming
Tags: sql, auto, increment, 2005, autoincrement
Sign Up Now!
Solution Provided By: aneeshattingal
Participating Experts: 1
Solution Grade: A
 
 
[+][-]11.12.2007 at 01:05AM PST, ID: 20262891

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.12.2007 at 01:06AM PST, ID: 20262896

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.12.2007 at 01:12AM PST, ID: 20262918

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.12.2007 at 01:18AM PST, ID: 20262936

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628