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

Transaction MS SQL

Hello.
I use ADO components in D4 and connect to MS SQL. I create new
transaction in ADO but an error occures: "You can't run more
transactions in this session". I use isolation level - ReadCommited. I
dont't run any transaction so I don't know what's wrong?

bye...

--
__ __
|__\\ | || |_// / \\ \_// FreeBSD: The Power To Serve
|__// |__|| | \\ \__// / \\ +------------------------------+
+[ http://bukox.prv.pl ][ http://total.bukox.dmkproject.pl ]+
Jul 23 '05 #1
3 1376
[BuKoX] (bu**********@tlen.pl) writes:
I use ADO components in D4 and connect to MS SQL. I create new
transaction in ADO but an error occures: "You can't run more
transactions in this session". I use isolation level - ReadCommited. I
dont't run any transaction so I don't know what's wrong?


What is D4?

I don't recognize the message, but it sounds like it's an error from
a client component.

Do you have a code sample?
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 23 '05 #2
Erland Sommarskog napisał(a):
What is D4?
Delphi 4 Standard
I don't recognize the message, but it sounds like it's an error from
a client component.
This message is translate from polish becouse I have Windows 2003 PL and
my component uses built in OLE DB driver (clinet side).
Do you have a code sample?


dbConn.CentralData.IsolationLevel := ilXactReadCommitted;
dbConn.Connection := dbParams;
dbConn.Connected := true;
....
dbConn.CentralaData.StartTransaction() // this error occured here
qQuery.Master := dbConn;
try
qQuery.Open;
while not qQuery.Eof do
begin
...
qQuery.Next;
end;
qQuery.Close;
except
on e:exception do
begin
qQuery.Close;
dbConn.CentralData.RollbackTranasaction();
exit;
end;
end;
dbConn.CentralData.CommitTransaction();

bye...

--
__ __
|__\\ | || |_// / \\ \_// FreeBSD: The Power To Serve
|__// |__|| | \\ \__// / \\ +------------------------------+
+[ http://bukox.prv.pl ][ http://total.bukox.dmkproject.pl ]+
Jul 23 '05 #3
[BuKoX] (bu**********@tlen.pl) writes:
Erland Sommarskog napisa?(a):
What is D4?


Delphi 4 Standard
I don't recognize the message, but it sounds like it's an error from
a client component.


This message is translate from polish becouse I have Windows 2003 PL and
my component uses built in OLE DB driver (clinet side).
Do you have a code sample?


dbConn.CentralData.IsolationLevel := ilXactReadCommitted;
dbConn.Connection := dbParams;
dbConn.Connected := true;


You may call that ADO, but the names of the properties and methods
are nothing that I recognize. Then again, I don't know Delphi.

So unfortunately, I will have to pass on this one.

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

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 23 '05 #4

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

Similar topics

16
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...
10
by: TZoner | last post by:
1) Can one find the location of the 'Transaction Log' at: <Hard Disk>\Program Files\Microsoft SQL Server\MSSQL\Data\MyDb_Log.ldf? 2) Is it safe to delete it, as SQL will create a new Transaction...
3
by: Thiko | last post by:
Hi I take one nightly full database backup at 02:00 and backup the transaction log to one backup set every 15mins. The commands to do this are as follows and are set up to run as database...
2
by: Deepak Mehta | last post by:
i have to update two tables from ASP pages with same data but i want that both of them should be updated at one time. If either of them is not updated then my transaction should roll back.I want...
1
by: Avanish Pandey | last post by:
Hello All We have 3 differen services (in 3 different server) Service A,B,C . We want to implement distributed transaction when call methods of B and C from A. Is it possible? if yes then how? ...
2
by: John Lee | last post by:
Hi, I have few questions related to .NET 2.0 TransactionScope class behavior: 1. Check Transaction.Current.TransactionInformation.DistributedIdentifier to identify if distributed transaction...
15
by: Zeng | last post by:
Hi, The bigger my C# web-application gets, the more places I need to put in the tedious retrying block of code to make sure operations that can run into database deadlocks are re-run (retried)...
1
by: Hubert Fröhlich | last post by:
Hi list, when doing a large Insert I get in the logfile: 2004-08-03 07:23:46 LOG: recycled transaction log file "000001BA000000BD" 2004-08-03 07:34:00 LOG: recycled transaction log file...
1
by: Matik | last post by:
Hi to all, Probably I'm just doing something stupid, but I would like you to tell me that (if it is so), and point the solution. There ist the thing: I' having a sp, where I call other sp...
2
by: Ryan Liu | last post by:
Hi, I have few db write and read to execute, so I use transaction. Is that a problem or is that a regular way that I only use transaction on some cmds only, and other cmds I do not use...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.