473,398 Members | 2,389 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,398 software developers and data experts.

Problem with uncommited transactions in log-file

Hi group

I have an application running on a couple of pc's all connecting to
the same SQL-serve databaser. The other day one of my applications
started a transaction which it never committed (programming error) .
The application continiued running for a couple og hours filling every
insert and update statement to the sql-server log-file, where they
remain rigt now. The applications on all the other machines
deadlocket because they waited for the first application to commit. I
eventually shot down the ms sql service and restarted it. Now all the
transactions which were not commited are not to bee seen in the
database, because they remain in the log file (ldf-file) waiting for
af commit I cannot perform. Are there a way to browse an ms-server
..ldf file to see which uncommitted records are in it

Thanks if anyone can helo

Regards
jsa
Sep 7 '05 #1
3 1542
If you restarted the service, then the open transaction will simply
have been rolled back, as if it never happened. The easiest thing is
probably simple to redo the operations, but if that's not possible then
there are third-party tools which can read logs and recreate individual
statements. This is one (which I've never used):

http://www.lumigent.com/products/le_sql.html

Simon

Sep 7 '05 #2

Thanks - I will try this one.

I have tried som other 3rd partie apps to view the log file.. But it
does not show the uncommited transactions..

But I know they are still in the ldf file, because when I open the
file in a hex-editor, I can see some of the data.. But it is not very
readable

On 7 Sep 2005 08:23:46 -0700, "Simon Hayes" <sq*@hayes.ch> wrote:
If you restarted the service, then the open transaction will simply
have been rolled back, as if it never happened. The easiest thing is
probably simple to redo the operations, but if that's not possible then
there are third-party tools which can read logs and recreate individual
statements. This is one (which I've never used):

http://www.lumigent.com/products/le_sql.html

Simon


Sep 7 '05 #3
Holyman (ja*@oncable.dk) writes:
The applications on all the other machines
deadlocket because they waited for the first application to commit.


No, they did not.

Terminology time: a deadlock occurs when two processes are waiting
on each other to release a resource that is locked by the other process.
This condition is detected by SQL Server, and SQL Server will select one
of the processes as a deadlock victim, and rollback that transaction.

If the application was waiting for the run-away transaction to committed
they were simply blocked, but that is not a deadlock situation.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp

Sep 8 '05 #4

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

Similar topics

1
by: Steve Thorpe | last post by:
Hi. I have two sql servers and have ran exec sp_addlinkedserver 'ACSPSM', N'SQL Server' to link one to the other and also vise versa. Each server has two users permissioned. My problem is...
24
by: neo | last post by:
Hi, I have a problem to set a JDBC connection as READ UNCOMMITED. setTransactionIsolation(Connection.TRANSACTION_READ_UNCOMMITTED) This is causing lots of blocking on tables and update or...
2
by: Pascal Deparis | last post by:
Hi, I've got a problem with the DB2 Command Line Processor, in V8, FP1. The databases have been created on an AIX server (version 4.3.3). Have a look at this: >db2 ? list DB21034E The...
3
by: Daniel Chou | last post by:
Hello, We are running java applications which uses DB2 as the data store. But sometimes we get the following exception: 2004-04-25 22:51:39,478 FATAL LogService.logFatal(LogSer vice (?:?) -...
8
by: Don Riesbeck Jr. | last post by:
I have an C# EnterpriseService component that is part of an application I am developing that is responsible for writing data to an SQL Server. (it reads from a local DB (MSDE), then writes to a...
0
by: Sam Durai | last post by:
Hello, is there is any snapshot element availble which could give the no of uncommited Insert/Update/Delete stmts there were executed by an application. In the app shap I understand that this...
4
by: Ron | last post by:
Hi All, I've got a client/transaction type of database where tblClient is linked to tblTransactions via ClientID. The client table contains all clients from day one. The transaction table...
2
by: CriticalJ | last post by:
I have several projects that have been working for at least four years. Last Thursday, the connections for these projects began dropping immediately upon opening the project. When I test the...
5
by: jbenner | last post by:
I have opened a PMR for this with IBM, and am not asking for advice from the DB2 DBA community. I am posting this as an FYI that DB2 Health Monitor, even at the latest version of DB2, still can cause...
0
by: prakashgrp | last post by:
Hi, first i am new to sql server: server version is sql server 2000 we used to get lot of blocking session and we thought of use isolation level read uncommited instead of read...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
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
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,...

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.