473,396 Members | 2,020 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,396 software developers and data experts.

DB messed up after network failure - help

Hello, I have DB located on network, and network cable was cut off
accidently few days ago... now its fixed, but I can't add new records
to the DB with forms...

The error I get is this (when trying to add new record):
"The changes you requested to the table were not successful because
they would create duplicate values in the index primary key or
relationship. Change the data in the field or fields that contation
duplicate data, remove the index or redefine the index to permit
duplicate entries and try again."

I tried to change the data, first it didn't let me to, then, I removed
relations to table I suspect is causing problems, removed all indexes
on that table, changed "AutoNumber" on one column to "Number", and then
was able to change one last row of data with wierd characters -
replaced them manualy with meaningful data that should be there...

After that, I opened application and was able to insert only one
records, without problems, but then, when tried to insert next new
record - it failed again, with the same message...

Any advice for me what to do, what is the problem here, how to fix it?

Nov 13 '05 #1
3 1504

Your database is likely corrupted. Try to do a Compact/Repair.

Tools --> Database Utilities --> Compact and Repair Database

if that doesnt work you may have to create a new database and import
everything from the old one, which may or may not fix the corruption.

Hope this helps

Colin


*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #2
ColinWard wrote:
Your database is likely corrupted. Try to do a Compact/Repair.

Tools --> Database Utilities --> Compact and Repair Database

if that doesnt work you may have to create a new database and import
everything from the old one, which may or may not fix the corruption.

Hope this helps
With either method, make a backup copy first.
Colin


*** Sent via Developersdex http://www.developersdex.com ***

Nov 13 '05 #3

Salad wrote:
ColinWard wrote:
Your database is likely corrupted. Try to do a Compact/Repair.

Tools --> Database Utilities --> Compact and Repair Database

if that doesnt work you may have to create a new database and import everything from the old one, which may or may not fix the corruption.
Hope this helps


With either method, make a backup copy first.

Compact/Repair didn't fix the corrupted data...
But what I found out is that after I deleted all the relationship
between tables I was able to also delete AutoNumber field,
specifically the very last row which was corrupted...
That AutoNumber was messed up also, so, I after I deleted the row
and after I inserted manually new record, with normal values,
I recreated primary keys, indexes, and relationships,
and now database functions normaly...



Colin


*** Sent via Developersdex http://www.developersdex.com ***


Nov 13 '05 #4

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

Similar topics

2
by: Pandis Ippokratis | last post by:
Hi, I have the following problem: I am implementing a server in Java and I use jdbc to connect to an Oracle 9.0.2 db. All seem to work fine, but when I intensionally cause a network failure...
1
by: Vani | last post by:
Hi All, Is it possible to save a file on a network folder from a web application which is developed in ASP.Net. I tried mapping a network folder on the server and tried to save a file on that...
0
by: Roman Troshkov | last post by:
Hello, I Hope to see any opinions on this problem: After installing Net framework 2 on one of our Win2003 Web server I have experiencing trouble accessing MS SQL 2000 database. Configuration...
1
by: Daniel | last post by:
How to access a network file path \\foo\bar.txt from an .aspx and from a custom IHttpHandler? How to specify which account that aspx application should use when doing file IO from network paths?...
0
by: titojermaine | last post by:
The problem is that after reducing MSDTC security to "No Authentication", it mostly seems to work correctly, except that after a brief period of inactivity (a few minutes), the first attempt to use...
0
by: =?Utf-8?B?RXZlcnQ=?= | last post by:
After cloning a SATA hard drive with Ghost I cannot login to it. I placed it in a new PC (exactly the same as the one being cloned) but when I start the login screen appears, i give my username and...
1
by: sreejithp | last post by:
Hello, I am new to python. I have been trying to connect to telnet and feed some data from a server. Its working properly. I used the connectionObj.read_until() method to read the data from the...
5
by: marshmallowww | last post by:
I have an Access 2000 mde application which uses ADO and pass through queries to communicate with SQL Server 7, 2000 or 2005. Some of my customers, especially those with SQL Server 2005, have had...
13
by: AAaron123 | last post by:
I downloaded the personal website starter kit and when I run it I get the error shown below. I found a way of using Launch Surface Area Configuration that is supposed to fix the remote setting...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.