on sql 2005, I've got a view with select permission granted, the view
just "select * from table"
using odbc in access97, I linked this view and I create a query to
retrieve certain fields
the query properties are 'no locks' and dynaset record type
but just executing the query as a datasheet, locks some records in the
original sql server table
is this how it should work ? seems to me that it should not lock
anything
what if I use a snapshot record type, would that not lock records ? 4 2753
On May 9, 8:05*am, Roger <lesperan...@na tpro.comwrote:
on sql 2005, I've got a view with select permission granted, the view
just "select * from table"
using odbc in access97, I linked this view and I create a query to
retrieve certain fields
the query properties are 'no locks' and dynaset record type
but just executing the query as a datasheet, locks some records in the
original sql server table
is this how it should work ? seems to me that it should not lock
anything
what if I use a snapshot record type, would that not lock records ?
I moved the query to sql server, granted select permission, and now
I'm using this view as a linked table, same problem
if I just open the table (view) in access, and use the sql activity
monitor, it shows many page locks, and I not sure why since I'm not
scrolling through the records
Hi Roger,
The problem you are having is with the ODBC connection. ODBC
connections are continuous, thus, you will have record locking issues,
contention issues, and all sorts of other issues because of this
continuous connection. The fix is to not have a continous connection.
This is achieved by pulling the data you want to read into the local mdb
into a local table. You could use an append query to append (Insert
Into) records from the view to your local table, but a more reliable
method would be to use ADO.
ODBC is old technology and it was pretty state of the art when
everything was small. But, as data processing operations have evolved,
the demands are exceeding what ODBC (and Access altogehter) was
originally designed for. The current-permanent fix for all this (in the
Microsoft environment) is to migrate to disconnected data processing of
.Net (for data processing operations that involve servers - especially
the newer ones like sql server 2005 and higher).
Rich
*** Sent via Developersdex http://www.developersdex.com ***
Roger wrote:
on sql 2005, I've got a view with select permission granted, the view
just "select * from table"
using odbc in access97, I linked this view and I create a query to
retrieve certain fields
the query properties are 'no locks' and dynaset record type
but just executing the query as a datasheet, locks some records in the
original sql server table
is this how it should work ? seems to me that it should not lock
anything
what if I use a snapshot record type, would that not lock records ?
Just don't open the link as a datasheet. Most other uses (forms, reports,
etc.) will not have this problem.
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
On May 13, 5:46*pm, "Rick Brandt" <rickbran...@ho tmail.comwrote:
Roger wrote:
on sql 2005, I've got a view with select permission granted, the view
just "select * from table"
using odbc in access97, I linked this view and I create a query to
retrieve certain fields
the query properties are 'no locks' and dynaset record type
but just executing the query as a datasheet, locks some records in the
original sql server table
is this how it should work ? seems to me that it should not lock
anything
what if I use a snapshot record type, would that not lock records ?
Just don't open the link as a datasheet. *Most other uses (forms, reports,
etc.) will not have this problem.
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt * at * Hunter * dot * com
turns out the form has the problem too
but I found the fix in creating the sql view
instead of the view being
select * from table
I'm using
select * from table (nolock)
seems to work so far using either datasheet or a form This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dudley Joseph |
last post by:
Hi
Ive got an Access97 db with a record in one of the tables that appears
to be locked by another user even though no one is using it and the
..ldb confirms this. I need to delete this record but cant!!! Can
anyone tell me how I can do this?
Thanks
|
by: jimmojelsky |
last post by:
Access97 database - it is set up to share between several computers -
some users have full access, others only have read access - locking is
set at "no lock" - everything works unless one of the workstations has
an open query - the other workstations then get a "records locked"
message if they attempt to run a query - I have been trying to solve
this one for quite some time - can anyone help?
--
Posted via http://dbforums.com
|
by: DD |
last post by:
I have a mainform with a subform.
> The main form has a dropdown box "chooseMonth", in the afterupdate event
> i requery the subform so all records with the same date are viewed.
> Now i only want to print the selected records of the selected month
> Can any one advise on the below
Below is code i am trying to adapt (Thanks Don)
1.This first part is causing me problems so i have deleted it as it
strikes me that it is looking for a...
|
by: Randy |
last post by:
Access= 2002
I'm NOT a Programmer, but I have used VB in the past to do some things
( Spaghetti Code King) so I have some understanding of Coding
I need to replace a text field (teacher) in Table (attendance) with a
lookup fileld. the lookup field will point to a newly created table
(teachers)
the original DB was never intended to do the job that it is doing, but
|
by: Alicia |
last post by:
Does anyone know why I am getting a "Syntax error in Create Table
statement". I am using Microsoft Access SQL View to enter it. Any
other problems I may run into?
CREATE TABLE weeks
(
weekstart datetime not null primary key,
weekend datetime not null
)
| |
by: Terry |
last post by:
I have a database that I would like to query for a specific date
range.
I want to create a report based on this query that will pull any
records from the last 7 days.
Is this possible? Can someone tell me how it is done?
Thanks.
|
by: Bruce Lawrence |
last post by:
I have a table on a SQL server called history. When I link this table
using an ODBC connection, i give it the username and password and tell
it to save the password and it works great. On my PC. Other computers
however get asked for the password each time they try to write records
to the table.
What I'm trying to do is remove the linked table and open the SQL
database in a module and use the INSERT INTO query to insert my records
and...
|
by: University of Toronto |
last post by:
Hi gang,
Hopefully someone can help us out.
In short - Access 2002, db split into a front end and back end.
It appears that our backend db is locked. Our form bound to one table won't
allow new records to be created. When I open the table up directly,
attempts at a new record result in an error stating that the table is locked
by a user (me) who has opened the database in exclusive mode (from my
computer). The problem is that I do...
|
by: fniles |
last post by:
One of our application uses VB6 and Access97 database. Another application
uses VB.NET 2005.
This morning for about 15 seconds when the application tries to read either
a query or a table from the database, in in both VB6 and VB.NET
applications, I got the error "The Microsoft Jet database engine cannot find
the input table or query 'myTable'. Make sure it exists and that its name
is spelled correctly." Also, I got the error "The...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |