Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem Deleting Records

Status
Not open for further replies.

Mugs321

Programmer
Jan 31, 2007
49
CA
Hey all,
I've seen many posts across the Net regarding this issue, though none have been of any help.

I'm trying to delete some records using the following simple query (the tables are linked to an MSSQL database):
Code:
DELETE FROM Prod_Results WHERE AttemptID=51362

It keeps returning a "Could not delete from specified tables" error. I've tried encasing the 51362 in quotes and I've also tried adding a '*' between DELETE and FROM.

The query works perfectly fine if it's run on the server. Any ideas?
 
Nevermind... so apparently if you do not specify a primary key when linking, you get a Read-Only table... and that was the problem.
 
the tables are linked to an MSSQL database
Does the DSN's user have delete permission on the underlaying table ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
The user has both db_datareader and db_datawriter permissions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top