Solved

SQL 2000 update failed

Posted on 2011-09-08
10
232 Views
Last Modified: 2012-08-14
I am updating a SQL table and get an update failed error, this worked OK yesterday so I assume there is something wrong with SQL (see attached error)
Can anyone help?
SQL-error.bmp
0
Comment
Question by:HKFuey
  • 5
  • 4
10 Comments
 
LVL 5

Expert Comment

by:zvytas
ID: 36501395
Are you using linked server in your query? If so, check connection to the linked server, it seems it's down.
0
 

Author Comment

by:HKFuey
ID: 36501403
Access tables linked by ODBC, I can open a query on the table and try to manually edit the records and I get the error. This was working OK yesterday.
0
 

Author Comment

by:HKFuey
ID: 36501414
If I go directly to the table and try editing the field in question I get the same problem (it is not a key field)
0
 
LVL 22

Expert Comment

by:Kelvin Sparks
ID: 36501419
Have you dropped a primay key from any of the tables - this makes the tables read only from Access. Delete and relink the tables
0
 
LVL 22

Expert Comment

by:Kelvin Sparks
ID: 36501427
You're not by any chance linking to a view - they don't have primary keys. At the Access side you must create a unique index on the link. Normally you are asked what fields are used for the unique records when linking. It is soimetimes easy to forget when relinking that tables - or if you do it through code.
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:HKFuey
ID: 36501430
I have a copy of the database I did last week and this works OK
0
 
LVL 22

Expert Comment

by:Kelvin Sparks
ID: 36501438
The query you are using. Do it have one or more tables in it, and are any of those linked tables linking to a view?
0
 

Assisted Solution

by:HKFuey
HKFuey earned 0 total points
ID: 36501587
OK, its WORKING!

I had left the Access app open on my PC overnight, I assume this may have locked the data somehow?

Closing the app sorted it.
0
 
LVL 22

Accepted Solution

by:
Kelvin Sparks earned 500 total points
ID: 36501590
Ah, and SQL Server probably closed the connection while running overnight maintenance - strange you could still edit via tables though - mind you, stranger things have happened!!

Good luck

Kelvin
0
 

Author Closing Comment

by:HKFuey
ID: 36527853
Thanks for the help!!
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

895 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

14 Experts available now in Live!

Get 1:1 Help Now