Solved

SQL 2000 update failed

Posted on 2011-09-08
10
235 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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
 

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

773 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