Results 1 to 8 of 8
  1. #1
    DrkJrny is offline Novice
    Windows 8 Access 2007
    Join Date
    Feb 2018
    Posts
    3

    Increase maximum number of connections

    I'm working on a project where I'm creating Data Loggers through KepServerEx5. Basically I'm using Kepware to connect to our company's PLC programming through a DSN to log station cycle times and then dumps the information into an Access table (idb file). I hit a point where I could no longer make additional connection to the Access table and received an error that the table did not exist when though in reality it did. In order to add any additional Data Loggers I have to disable any previously entered data loggers. It appears that I've hit some sort of threshold in regards to how many data loggers can connect to this particular table. Is there any setting that I can change to increase that threshold? I've looked and I'm coming up empty. The version of Access that is being used is 2007. Any help is greatly appreciated.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    How many are we talking about? If 255, that is the limit of concurrent users that can connect to a database.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    DrkJrny is offline Novice
    Windows 8 Access 2007
    Join Date
    Feb 2018
    Posts
    3
    Thank you Orange

  5. #5
    DrkJrny is offline Novice
    Windows 8 Access 2007
    Join Date
    Feb 2018
    Posts
    3
    I guess I need to figure out how it is determining the number of users. I don't have that many data loggers, but there are several bits of information that is being pulled in each one. That may be throwing me over the top. Thanks for the insight. Gives me something to work with.

  6. #6
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,128
    I've used the form that orange suggested and it works well - very useful for developers to track issues
    If you test it with your database you will find certain actions use more than one connection

    Add a datalogger and determine its impact. Add another and repeat
    Remove each in turn and check whether the connections used are all freed.
    If not look for causes e.g recordsets not closed

    Once you have done several tests it should be possible to set a limit to the number of dataloggers that you allow at a time
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  7. #7
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Don't know what your code looks like, but you should read http://accessblog.net/2005/12/be-car...currentdb.html
    Look at the comment by Alex Dybenko re DBEngine(0)(0)

  8. #8
    beilstwh is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Jan 2018
    Posts
    11
    If you are using more then 255 connections you are using the wrong tool. Access just can't scale up like that. I would load up the free version of sql server, use the built in wizard in access to move all data files into sql server. Sql server doesn't have a connection maximum that you will (probably) ever hit.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Need Help Setting a Maximum Number
    By kreelix in forum Access
    Replies: 3
    Last Post: 10-13-2015, 05:26 PM
  2. Minimum and Maximum Number
    By mohanmoni in forum Queries
    Replies: 3
    Last Post: 02-04-2015, 01:55 PM
  3. OnClick increase number in field on form
    By DCV0204 in forum Forms
    Replies: 1
    Last Post: 07-25-2014, 11:02 AM
  4. Replies: 6
    Last Post: 01-28-2014, 11:44 AM
  5. Increase number by 1
    By elstiv in forum Queries
    Replies: 2
    Last Post: 05-14-2011, 12:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums