🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #201

Access to SQL conversion problem

#201
From: Nikhil
Date: Wed, 06 Jan 1999 00:00
23 lines
1862 bytes
I am currently converting many of my Access tables to SQL 7 tables (the
Access 97 tables are becoming extremely big).  Things appeared to be going
well until I came across the following problem:

In Access my tables have a Primary key that increments by a value of 1 each
time a user enters a new record (pretty typical).  Creating these tables in
SQL 7 goes fine (including creating a primary key on the same field that is
the primary key in Access), appending the values into SQL 7 goes fine (no
errors even with a primary key).  The problem occurs when I try to set the
column as an Identity column in SQL and increment the values by 1 (I am
setting the Identity seed equal to 1 as well).  This problem occurs under
many circumstances.   The first is when I append the records first then try
to set the Primary key column to an identity column.  The table simply can
not be saved.  The second is I will create the column as a Primary key and
identity column before the append process.  In this case the append process
can not complete due to key violations.

Changing the seed value does not work.  What am I doing wrong?  I assume
this type of conversion is doable and I am doing something very simple
wrong.  Help?

Regards,
Keith
Technical Details
Message-ID: <a5Mk2.2253$wi7.603@news.rdc1.ct.home.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,adc377af881a2640,start
X-Google-Attributes: gidff5a1,public
From: "Nikhil" <nnayak@reesegroup.com>
Subject: Access to SQL conversion problem
Date: 1999/01/06
Message-ID: <a5Mk2.2253$wi7.603@news.rdc1.ct.home.com>
X-Deja-AN: 429447441
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-Complaints-To: abuse@home.net
X-Trace: news.rdc1.ct.home.com 915639750 24.2.139.71 (Wed, 06 Jan 1999 08:22:30 PDT)
Organization: @Home Network
NNTP-Posting-Date: Wed, 06 Jan 1999 08:22:30 PDT
Newsgroups: borland.public.vdbase.data.sql