473,403 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Primary key dropping unexpectedly?

Hi all,

Has anyone ever had an issue in MS Access 2003 where the primary key
of a table has just disappeared overnight? The database is on a
server file share, is in native MS Access and is split into code/data
files but is not unusual in any way from any other I have seen. The
only differenbce (for me) is this is the first 2003 dB I have come
across, normally I develop with 97 or 2K. I have scanned various
group histories to see if anyone else has expoerienced this issue but
have not come up with anything yet.

Thanks

Skidder1

Oct 5 '07 #1
2 3890
When you compact/repair a database, Access rebuilds the indexes. If it
discovers duplicate data in a field that has a unique index, it has a
problem. The Microsoft developers decided it would be better to drop the
index rather than the data.

When this occurs, you should have a table with a name ending in
CompactErrors, explaining where the problem lies.

A side effect is that if there was a related table and the referential
integrity depended on the unique index, the relation is also dropped.

This situation does not arise often, though a flaky network increases the
chance of incomplete/interrupted writes.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Skidder1" <sk******@ntlworld.comwrote in message
news:11*********************@g4g2000hsf.googlegrou ps.com...
>
Has anyone ever had an issue in MS Access 2003 where the primary key
of a table has just disappeared overnight? The database is on a
server file share, is in native MS Access and is split into code/data
files but is not unusual in any way from any other I have seen. The
only differenbce (for me) is this is the first 2003 dB I have come
across, normally I develop with 97 or 2K. I have scanned various
group histories to see if anyone else has expoerienced this issue but
have not come up with anything yet.

Thanks

Skidder1
Oct 5 '07 #2
BTW, here's a bit more on this question:
http://allenbrowne.com/ser-47.html#LostKeyRelation

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Skidder1" <sk******@ntlworld.comwrote in message
news:11*********************@g4g2000hsf.googlegrou ps.com...
>
Has anyone ever had an issue in MS Access 2003 where the primary key
of a table has just disappeared overnight? The database is on a
server file share, is in native MS Access and is split into code/data
files but is not unusual in any way from any other I have seen. The
only differenbce (for me) is this is the first 2003 dB I have come
across, normally I develop with 97 or 2K. I have scanned various
group histories to see if anyone else has expoerienced this issue but
have not come up with anything yet.

Thanks

Skidder1
Oct 5 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Niel | last post by:
Hello friends, I am not sure if i am posting to the correct group but if anyone has an idea about this and the possible solution or the link to that solution then please let me know We have out...
1
by: Thiko | last post by:
Hi I have a corrupt PK index on a table column. It is a unique PK. It needs to be dropped and recreated to cure the corruption. The table is on a backup database which is in replication...
0
by: Nils Valentin | last post by:
Hi Mysql fans ;-); I have a problem understanding why MySQL is deleting a unique key instead of a primary key. from Documentation: DROP PRIMARY KEY drops the primary index. If no such index...
4
by: Graham Siener | last post by:
Hi All, I have a real confusion situation on my hands. I've written a windows service in c# that basically does archiving of data from one database to another. Along the way it parses one...
0
by: Boris | last post by:
I have a service developed in Visual C++ in "mixed mode" (originally developed as unmanaged under VS 6.0, and now uses managed FCL classes). I use FCL System.Messaging.MessageQueue and...
2
by: Matt Sollars | last post by:
Hi all. I'm having a nasty problem. A client's website was originally written with classic ASP. They requested a new portion of the site that was deemed a perfect candidate for ASP.NET. So, .NET...
1
by: Jarrod Hermer | last post by:
Hi All, I am trying to debug a strange problem of duplicate entries in my database when I came across the following errors in the event log (see bottom of mail). The web server runs the database...
2
by: John A Grandy | last post by:
Has anyone unexpectedly encountered the following error for an ASP.NET application that was working fine? ...
3
by: Ramesh Dodamani | last post by:
Environment: XP Pro, VS.Net 2003, .Net 1.1.4322 with SP1 & KB Hotfix 886903 P4 2.2GHz, 1 GB RAM My system was working fine till a few weeks back when I started seeing the following errors. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.