dbTalk Databases Forums  

SQL/Access locking issue

comp.databases.ms-access comp.databases.ms-access


Discuss SQL/Access locking issue in the comp.databases.ms-access forum.



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

Default SQL/Access locking issue - 12-03-2010 , 01:19 PM






I'd try comp.databases.sql-server but it looks like a SPAM factory
there...

I added 3 new fields to a SQL table. I can edit data in SQL Server
just fine. However, when I try to edit the data in Access (the tables
are linked to an Access front-end), I get "This record has been
changed by another user since you started editing it. Etc..."
Obviously it's a locking issue. I know when you add fields to a table
that it literally drops the table and then recreates it with the new
fields. I'm wondering if the permissions get reset or something when
that happens? I know for a fact that no one else is in this table,
it's on a DEV server and I'm the only one in this database. Any ideas?

Reply With Quote
  #2  
Old   
Tony Toews
 
Posts: n/a

Default Re: SQL/Access locking issue - 12-03-2010 , 01:23 PM






On Fri, 3 Dec 2010 11:19:39 -0800 (PST), ManningFan
<manningfan (AT) gmail (DOT) com> wrote:

Quote:
I added 3 new fields to a SQL table. I can edit data in SQL Server
just fine. However, when I try to edit the data in Access (the tables
are linked to an Access front-end), I get "This record has been
changed by another user since you started editing it. Etc..."
Obviously it's a locking issue.
No it's not obvious. Do your tables have a TimeStamp aka RowVersion
colum? Access really likes those.

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a convenient utility to keep your users FEs and other files
updated see http://www.autofeupdater.com/

Reply With Quote
  #3  
Old   
ManningFan
 
Posts: n/a

Default Re: SQL/Access locking issue - 12-03-2010 , 01:35 PM



On Dec 3, 2:23*pm, Tony Toews <tto... (AT) telusplanet (DOT) net> wrote:
Quote:
No it's not obvious. *Do your tables have a TimeStamp aka RowVersion
colum? *Access really likes those.
Ha! You're right, I was "obviously" wrong. One of the new fields I
created was a BIT (it's a Yes/No field), and it turned out Access
didn't like it. Changed it to a Varchar(1) and everything was fine.

Reply With Quote
  #4  
Old   
Tony Toews
 
Posts: n/a

Default Re: SQL/Access locking issue - 12-04-2010 , 08:09 PM



On Fri, 3 Dec 2010 11:35:19 -0800 (PST), ManningFan
<manningfan (AT) gmail (DOT) com> wrote:

Quote:
No it's not obvious. *Do your tables have a TimeStamp aka RowVersion
colum? *Access really likes those.

Ha! You're right, I was "obviously" wrong. One of the new fields I
created was a BIT (it's a Yes/No field), and it turned out Access
didn't like it. Changed it to a Varchar(1) and everything was fine.
Oh yes, I'd forgotten about that one. Although making it an integer
or byte field might be somewhat better.

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a convenient utility to keep your users FEs and other files
updated see http://www.autofeupdater.com/

Reply With Quote
  #5  
Old   
a a r o n _ k e m p f
 
Posts: n/a

Default Re: SQL/Access locking issue - 01-03-2011 , 06:18 AM



wow it must really suck to have all these extra limitations.

you DO know that if you moved to Access Data Projects, you wouldn't have to worry about any of this bullshit, and you can just build forms and reports directly against sprocs without any of this linked tables bullshit?

Reply With Quote
  #6  
Old   
a a r o n _ k e m p f
 
Posts: n/a

Default Re: SQL/Access locking issue - 01-03-2011 , 06:18 AM



wow.. so now.. every single SQL Server table needs an extra column.. just to work with Access?

What does -that- do to performance?

Oh yah.. you don't know anything about performance because you only work on baby-sized databases, huh?

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.