Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
5.00/5 (3 votes)
Hello All,

We are facing an issue with MS access ADP project (SQL SERVER 2000 on backend) in production environment. Currently 20 users are using the application and they have their own copies of access application, when any user opens the application it creates three new connections with the database and keep them in sleeping status. Activity monitor shows the following processes in sleeping state,

1)
SQL
SET NO_BROWSETABLE ON

2)
SQL
select object_name(id), user_name(uid), ObjectProperty(id, N'IsScalarFunction'), ObjectProperty(id, N'IsInlineFunction'), ObjectProperty(id, N'IsMSShipped'), ObjectProperty(id, N'IsSchemaBound') from sysobjects where type = N'TF' and permissions(id) & 4096 <> 0

3)
SQL
SET LANGUAGE us_english


When all users open their application number of processes reach to 60 and sql server got struck. Is their any way to minimize the number of connections?
Posted
Updated 24-Feb-11 6:52am
v2
Comments
Zamarrud 24-Feb-11 13:59pm    
I am also facing the above issue.
Sunasara Imdadhusen 25-Feb-11 0:20am    
You should close connection whenever your task is done
e.g.
Con.Open();
Cmd.ExecuteNonQuery("DELETE FROM EMP",Con);
Con.Close();

Thanks,
khurem 25-Feb-11 2:27am    
Sunasara,

This problem occurs at application startup

Thanks,

1 solution

see this link it may help u
http://www.mssqltips.com/tip.asp?tip=1470[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900