dbTalk Databases Forums  

Delete and update

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Delete and update in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Roy
 
Posts: n/a

Default Delete and update - 03-05-2007 , 08:38 PM






Hi All,

I have a Access front-end,the tables are from SQL server 2000 and
linked via ODBC using DSN.
I have a Main table and several related tables.The Main table has a
One -to- Many relationship with the related tables.
When I try to delete a record from the front-end,I get a error msg "
the table is locked,you and another user are attempting to delete/
update the same record".I am the single user and I am at a loss to
understand what the problem is.

I have to explain that I never had a problem when i was using Access
as the backend too.Is it because of linking?

Any suggestions?

Roy


Reply With Quote
  #2  
Old   
Jack Vamvas
 
Posts: n/a

Default Re: Delete and update - 03-06-2007 , 02:50 AM






Are you are running the sql statement from Access?
Is the DSN a User DSN or System DSN?

--

Jack Vamvas
___________________________________
The latest IT jobs - www.ITjobfeed.com
<a href="http://www.itjobfeed.com">UK IT Jobs</a>


"Roy" <praish1998 (AT) yahoo (DOT) com> wrote

Quote:
Hi All,

I have a Access front-end,the tables are from SQL server 2000 and
linked via ODBC using DSN.
I have a Main table and several related tables.The Main table has a
One -to- Many relationship with the related tables.
When I try to delete a record from the front-end,I get a error msg "
the table is locked,you and another user are attempting to delete/
update the same record".I am the single user and I am at a loss to
understand what the problem is.

I have to explain that I never had a problem when i was using Access
as the backend too.Is it because of linking?

Any suggestions?

Roy




Reply With Quote
  #3  
Old   
Ed Murphy
 
Posts: n/a

Default Re: Delete and update - 03-06-2007 , 10:26 PM



Jack Vamvas wrote:

Quote:
Are you are running the sql statement from Access?
Is the DSN a User DSN or System DSN?
What SQL statements does Profiler show as being attempted?
How are the relationships enforced (which ON DELETE option is in use)?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.