473,239 Members | 1,607 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,239 software developers and data experts.

MS -SQL Server 2000 -connection closes randomly


We have some console application which runs in background with the
following logical flow :
loop (1..n)

Open SQLConnection;
Loop Till No Data Found
Fetch N Records;
For Each of N Records
Begin Transaction;
Do DB Activity on the current record (Update);
If Last operation Failed
DB Rollback;
If CommitFrequency reached
DB Commit;
Close SQLConnection;

After successfully executing some random number of records, the
connection object is abruptly closing (In the line marked RED). It is
giving "Connection Closed" exception on ExecuteQuery() call. Sometimes
it is giving "Reader is already closed" while doing any Get()
operation on the SQLReader object.

We are using
VS.Net 1.0 with SP4
SQLServer 2000(no SPs)

1) We are making a direct call to SQL server from the App Layer and
using COM+ .. to maintain transactions. Transactions are maintained
purely by the Conn transaction Object.

2) We have not specified any TimeOut property in the ConnectionString.
(Anyway also tried giving a huge value just for testing).
Is there any default timeout that is there in MS SQL and if yes how to
offset it?

Jul 20 '05 #1
0 1426

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

Similar topics

by: Ananta | last post by:
Hi I am having a problem with the SQL server connected in VC#.net I am using the SQLDataAdaptors to access and fill the data to the DataSets. There are certain pages in sequence which run...
by: vighnesh | last post by:
Hi All I am dealing a project in ASP.NET in which I have to establish a connection to SQL Server 2000 database,where the database was located on a remote system. For this I have used...
by: tangokilo | last post by:
Hi I published the problem below some days earlier in xxx.dotnet.languages.vb.data and got no response. So I try here, maybe someone can help me! When developing on stand alone PC using VB...
by: Todd Brewer | last post by:
Windows Server 2000 ASP.NET 2.0 SQL Server 2000 (on a physically seperate server) I moved an ASP.NET 2.0 application from a development server to production, and am getting the following error:...
by: tamayi | last post by:
I have a problem (like most others posting issues on this forum :) ) I have a remote server running Windows XP SP2, with both SQL Server 2005 Express with Advanced Features and SQL 2000...
by: OJ | last post by:
Hi, I am at a loss here, I have a c# asp.net website which connects to a remote SQL Server 2000 db via a connection string. If I set the website up in the filesystem and use the inbuilt cassini...
by: finn clement hansen | last post by:
Hi group, being pretty new to setting up sql server, I am stuck. Have installed sql 2000 server on Win 2000 server, IIS 5.0. I try to connect via ASP script that looks like this: <% Set...
by: Vikram S | last post by:
Hi All, I have an ASP.NET 2.0 web application on a web server and a separate machine for SQL Server 2000 Database. I am using a Connectionstring based on Sql Authentication to connect to the...
by: jamesd0142 | last post by:
Can any one help me connect a a server and retrieve information from a DB usin vb.net and sql server 2000? server: ELWADB1 Table: Post16 Possible using windows authentication, otherwise any...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.