473,509 Members | 2,526 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.NET and SQL database lost sessions on Locks/Object pane

MC
Hi!

I have noticed this strange problem I cannot explain when I connect to sql
server using .net:
I use a .NET app to connect to a sql server database. When I do so, two
strange things happen at the database.
I can watch them in Enterprise Manager's Current Activity pane, and
refreshing it.
First, some times I get two Process IDs in the database, after invoking
Connection.Open call at the code. Some times, only one Process ID is
created.
Why is that?
Second, after explicity closing my connection and disposing it, at least one
Process ID remains.
**The problem happens even with Microsoft's Application Blocks samples** at
http://msdn.microsoft.com/library/de...ml/daab-rm.asp.

Only closing my app makes those Process IDs dessapear from the database.
In ASP.NET I have to kill aspnet_wp in order to clean them.
I do not use in the tests any database related object (SQLReader, Dataset,
....). You can watch this using only Connection.Open, Connection.Close and
CType(connection, IDisposable).Dispose() methods.

I have tried it on different machines with different SQL servers and
configurations.
The behavior is allways the same.
Can anyone give me a good reason for this?
Thanks in advance.
-- MC
Jul 21 '05 #1
0 1237

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
7454
by: noah | last post by:
Does PHP have a feature to associate Cookie sessions with a persistent database connection that will allow a single transaction across multiple HTTP requests? Here is how I imagine my process: I...
3
4063
by: Leinad Kong | last post by:
I'm using Access 2002, as front-end and back-end as well: 1) I faced database corrupted problems, when more than 1 user edit concurrently. I'm using All-records Locking, and open-exclusively as...
3
4283
by: Grinninger | last post by:
Hello, I am using ASP.NET, C# under W2K. I try to keep some important information in application- and session-state Objects. With the recycling of the ASPNet_WP.EXE my application- and...
8
2370
by: Ron Vecchi | last post by:
I know this has been asked before but I out of all the posts I've read regarding using Directory.Move and then the application restarting itself I have found no answer except that Sessions are...
3
2594
by: William | last post by:
Hi I have an ASP.NET application that connects to an Access database. Everything works fine except for the Session object. Data in the session object is lost after I've made a call to the...
9
3232
by: AndersBj | last post by:
Hi all, I have a web application that uses State Server for session handling. The web application randomly loses all session variables. The sessions are not always lost, sometimes I can use the...
0
227
by: MC | last post by:
Hi! I have noticed this strange problem I cannot explain when I connect to sql server using .net: I use a .NET app to connect to a sql server database. When I do so, two strange things...
10
4543
by: jt | last post by:
The program works like this: There is a form with a button. When the form is loaded, a separate thread is started which is retreiving/updating data in the database every x seconds. When clicked...
10
2723
by: joeriggs | last post by:
Having trouble with an application which is using SQL Server 2000 to store session state. The App is ASP.NET 2.0 on Win2003. Occasionally all sessions are lost at once, causing the app to break....
0
7233
marktang
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,...
0
7135
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...
0
7410
jinu1996
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...
0
7505
tracyyun
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...
0
5650
agi2029
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,...
1
5060
isladogs
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...
0
4729
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...
0
3215
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...
1
774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.