Link to home
Create AccountLog in
Avatar of Larry Brister
Larry BristerFlag for United States of America

asked on

SQL Open Connections and MS Access front end

I am new to our company which is using MS Access as their interface with SQL database instead of Access tables. I've been brought in to move everything to Intranet Web Application.

The company has 80 employees of which about 70% at any particular time are on the MS Access system.

When I run my code below...a standard when I was checking my intranet site(s) at my previous company...I'm getting minimun of 280 and sometimes 350+ connections to the application database. For max of 60 people using system + 4 developers + any job(s) that may be running.

Is this normal for MS Access Applications?

Generally speaking on my intranet sites as I opened and closed connections I would see a maximum of 25-40 connections in a company of 250 + people. And 6 of those were my development team.


Getting open connections
SELECT DB_NAME(dbid) as 'DbName', COUNT(dbid) as 'Connections'
   from master.dbo.sysprocesses with (nolock)
   WHERE dbid > 0 and DB_NAME(dbid) not in ('master','msdb')
   GROUP BY dbid
Avatar of Ishaan Rawat
Ishaan Rawat
Flag of India image

Yes. It is normal
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
Flag of Canada image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Armen Stein - Microsoft Access MVP since 2006
I know you're planning to move everything to a web app, and that can be a lot of work.  Just so you know, a well-designed Access + SQL Server application can easily handle 50-70 users.  But it can't just used linked tables for everything - there are specific techniques that must be used.

I've written a PowerPoint presentation on this.  It's called "Best of Both Worlds" at our free J Street Downloads Page:

It includes some thoughts on when to use SQL Server, performance and security considerations, concurrency approaches, and techniques to help everything run smoothly.

Armen Stein
If the thing is going to move to the web, I do not see why Access should stay in the equation. Access used with SQL Server is only a front end. If the front end becomes a web site, Access becomes just a useless bridge that will eventually just be a handicap. The proper route would be to go straight from ASP to SQL Server.
Hi James,

I don't think lrbrister is saying that Access will still be part of the new system.  They're going to replace it with a web app.  The question is about how the old Access app is using SQL Server connections, if I understand it correctly.  I just added that it's possible to use an Access/SQL app with that many users if it's done correctly.

Avatar of Larry Brister


THis put me on the right track

ADP is being used with some vba...however...connections were being left unnecessarily open.