Question

What are the downsides to lowering ODBC Refresh Interval?

Asked by: SueJStevens

I have an Access front end with a SQL Server backend.  We are using linked tables in the Access front end.  The tables are very small - (the largest being under 2000 records).  I have added two new fields to caputre the data/time and user who last updates a record.  I added on SQL Server a trigger which updates these two fields when any part of the record is changed.  We now experience an error which we believe to be a latency issue which we want to resolve by changing the ODBC Refresh Interval from 1500 to 1.  The error reads as follows:  "The data has been changed."  Another user edited this record and saved the changes before you attempted to save your changes.  Re-edit the record."

When I change the ODBC Refresh interval from 1500 to 1, I can no longer recreate the error message.  Can anyone provide me with a list of downsides to be aware of by changing the ODBC Refresh interval?  

CREATE TRIGGER [dbo].[trg_Table1_LastUpdated] ON dbo.Table1 
FOR UPDATE
AS
UPDATE [dbo].[Table1]
SET RecModDtTm = getdate(),
RecModBy = suser_sname()
WHERE RID IN (Select RID From INSERTED)
                                  
1:
2:
3:
4:
5:
6:
7:

Select allOpen in new window

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-10-13 at 09:57:16ID24808459
Tags

Access SQL Server ODBC

Topics

Microsoft Access Database

,

MS SQL Server

Participating Experts
3
Points
500
Comments
10

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Downside of FAT32?
    I'm about to add two 10 gig HDs to my system and I don't want to have too many partition letters (Alphabet Soup Syndrome). I would like to go to FAT32 which allows larger paritions but someone told me this is unwise. What is the downside of moving to FAT32? I also run se...
  2. Implement ODBC
    We have a front-end/back-end database (Access 97) that typically runs on a network in a multi-user environment. Some of our clients, however, have asked us if they can access the data from home via a modem or cable. It's been awhile since I've done that and would appreciate c...
  3. Lexmark downside
    I've been hearing lately that the downside to the Lexmark brand of printers, and thus the reason their probably less expensive. Is that they consume ink faster. Can anyone confirm, deny or otherwise comment on this. Secondarily, I'd like ...........surprise......recommendati...
  4. odbc
    i could not open a trace file to our ODBC and a lot of users were just timed out...no messages just could not execute the modules within the application. So after a reboot i could do a trace on the ODBC. Do you know how to flush old connections of odbc and check this.
  5. Downsides to VOIP.
    I have a deticated DSL that I am thinking of adding VOIP. What I would like to know is what are the downsides to moving from phone line to VOIP if any? Thanks

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: LSMConsultingPosted on 2009-10-13 at 15:12:19ID: 25565359

Performance issues would be the biggest concern to me ... in essence you're enabling constants refreshes from the server, which is never a good idea.

 

by: boag2000Posted on 2009-10-13 at 20:40:11ID: 25567058

Why the huge jump from 1500 (25 mins, I believe) down to 1?
:-O

Instead of jumping from 1500 to 1, why not decrease it "gradually" until issues start occurring, then bump it back up a bit.

;-)

Also worth noting is that setting this to zero is not "Instant" refreshes, as you might think. This results in "No" refreshes.

;-)

JeffCoachman

 

by: SueJStevensPosted on 2009-10-14 at 07:56:30ID: 25571226

LSM Consulting & Jeff:

Thank you for your responses to this inquery.  I was aware that '0' meant no refreshes.  What I don't understand is why the default is so high.   1500 seconds is 25minutes!  In a multi-user environment, does this mean the users have a potential of waiting 25 minutes before another user's data is reflected to their screen?

The reason I picked '1' is that the users do not want to see this error message.  It is not unusual for our users to be editing record 1, move to record 2 to copy something then back to record 1 to paste the value.  So the refresh rate needs to be something low enough so that when the user moves from record 1 to record 2 and back again which I believe to be somewhere near 5 seconds--or less for our Speedy Gonzoles QA tester :)

Our database is very small.  All records in all tables do not total more than 20K and on average each table is less than 750 records.  I can not detect any performance issues with a refresh rate of 1.

Thanks again for your responses.

 

by: boag2000Posted on 2009-10-14 at 08:36:58ID: 25571783

Perhaps I misunderstood the issue.

Are you saying that
1. Everything was fine with a refresh interval of 1500
2. You then made a mod to the table and you started getting errors, (again, at 1500)
3. You then set the rate to 1, and the issue was resolved?
Please confirm.



LSM will have more detailed info on this...

A refresh of 1 second will force Access to make a call to the Source for *All* the data.
Even in a small source this may cause more network traffic than you  (Or especially the Network Admin) may want.
;-)
Network Hardware, network speed, server performance, physical distance from the server, ...etc...also may play a role in this.

Remember, the source may be "small" now, but perhaps not in a few months or years
:-O

In other words 1 second may be too short a time to pull in all the data before the next call is made.
Possibly introducing a totally different set of errors...

But again, let's see what LSM says on this...

;-)

Jeff

 

by: SueJStevensPosted on 2009-10-14 at 10:50:01ID: 25573119

Jeff:

Re your question above, yes that is the scenario.  Prior to introduction of triggers, the only way a record changed was if the user changed it.  So if a user was on record 1, made a change, went to record 2 and then back to record 1 for another change, record 1 reflected the original change for the user.  After the introduction of the trigger, whenever a user makes a record change, SQL Server also makes a record change which is not reflected back to the user until the end of the refresh interval.  So if the user needs to make another change to the same record prior to the end of the refresh interval, the error message appears.  

Setting a refresh interval of 1 resolves the issue.  Whether or not the issue is resolved for a refresh rate higher than 1 is a function of the speed of which the user  moves back and forth between changing records and returning to changed records.

The information you have provided is helpful as we are trying to identify the risks prior to releasing this change into production and to ensure all the right parties are involved in the decision making process of what to set the refresh rate to.

Thanks,

Sue

 

by: boag2000Posted on 2009-10-14 at 12:03:50ID: 25573894

Sorry, I am no expert on triggers in SQL Server, so I can't comment.

I'll wait and see if LSM posts anything further...

Jeff

 

by: LPurvisPosted on 2009-10-14 at 13:41:18ID: 25574950

The behaviour you're describing is unusual (or at least the proposed reason should be).
Obviously if every action performed by a trigger on a table caused concurrency problems in Access then it would have to be addressed by design.

Can you provide the actual schema of your table (all of it) and the trigger definition (which I would expect to actually be fairly innocuous).

You might want to add the tried, tired, tested, proven and disproven method of adding a TimeStamp field to prevent innaccurate update checking from floating point and non-Jet equivalent fields.
That's more likely to play a part.

Cheers.

 

by: SueJStevensPosted on 2009-10-14 at 14:24:47ID: 25575438

I'm happy to provide the actual schema of one of the tables and the trigger.  Attached as a code snippet is the text from SQL Script Preview which provides you with the table name, field names, types, etc.  Following that is the table constraints and trigger.  Let me know if you need anything else.  thanks for your help.

CREATE TABLE [dbo].[tblPeople] (
 [People_ID] [int] IDENTITY (1, 1) NOT NULL ,
 [Prefix] [nvarchar] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [First_Name] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Middle_Int] [nvarchar] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Last_Name] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Suffix] [nvarchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Degrees] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Business] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Title] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Address1] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Address2] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [City] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [State] [nvarchar] (3) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Zip] [nvarchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Phone] [nvarchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Fax] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Email] [nvarchar] (75) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Addl_Contact] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Cleanup notes] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Country] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [byteReportFormat] [smallint] NULL ,
 [RecModDtTm] [datetime] NULL ,
 [RecModBy] [nvarchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [RecAddedDtTm] [datetime] NULL ,
 [RecAddedBy] [nvarchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL 
) ON [PRIMARY]
GO 
ALTER TABLE [dbo].[tblPeople] WITH NOCHECK ADD 
 CONSTRAINT [DF__tblPeople__RecAd__69FBBC1F] DEFAULT (getdate()) FOR [RecAddedDtTm],
 CONSTRAINT [DF_tblPeople_RecAddedBy] DEFAULT (suser_sname()) FOR [RecAddedBy],
 CONSTRAINT [aaaaatblPeople_PK] PRIMARY KEY  NONCLUSTERED 
 (
  [People_ID]
 ) WITH  FILLFACTOR = 90  ON [PRIMARY] 
 
CREATE TRIGGER [dbo].[trg_tblPeople_LastUpdated] ON dbo.tblPeople 
FOR UPDATE
AS
UPDATE [dbo].[tblPeople]
SET RecModDtTm = getdate(),
RecModBy = suser_sname()
WHERE People_ID IN (Select People_ID From INSERTED) 
  

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:

Select allOpen in new window

 

by: LPurvisPosted on 2009-10-15 at 14:27:34ID: 25585094

That does look reasonable. However the data types needn't be the only cause. Access' own checking mechanism (using every field) will become a hinderance.
Just out of interest, what versions of Access and SQL Server are we talking about here?

Again, I'd recommend adding a TimeStamp column.
This will prevent Access from checking every column to determine updates. Since the columns haven't updated (been refreshed) since the last update through the Access UI then the previous value has been assumed for your audit fields - but that doesn't necessarily match when a refresh is performed upon a pending update.

The TimeStamp should see Access make no such verification attempt. (It assumes the TimeStamp field alone is sufficient to determine the update status).
Add the column - see how you go with a 1500 interval again.

FWIW - to answer the question, I'd agree that the primary concern is unecessary network traffic and server workload. Which would become noticable with increased use or rows.

Cheers.

 

by: SueJStevensPosted on 2009-10-15 at 16:41:08ID: 25585898

Hi LPurvis:

Thanks so much for the suggestion.  I've implemented in our test environment and performed unit testing with great success!  

I've passed it along to our QA Tester and will stop back here if there are no further issues and assign the points and close this question.

BTW:  we are using SQLServer 2000 and MS Access 2003.

Thanks again,

Sue

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...