BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

StoredProcedures returns resultset and transaction control

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Henrique
Guest





PostPosted: Mon Sep 06, 2004 7:56 pm    Post subject: StoredProcedures returns resultset and transaction control Reply with quote



Hi,

I have an application originally in BDE with Sybase ASA 8 that I´m
translating to DBX using ASA DBX Driver. I use D7.1, ASA 8/9.

I use some stored procedures to create resultsets from temporary tables for
some reports. Inside this procedure I create a temporary table, insert some
data and at the end of procedure I return a select from this temptable. To
get this result set I use Query with SQL calling procedure or using
TStoredProc as a DataSet.

In BDE everythings works fine but in DBX this procedure increments TranCount
and I have transaction control problems manly when I call another procedure
after this report with transaction control. In BDE I seams that after
calling this query it commit´s work (see from SQLMonitor) but in DBX there
is no commit or rollback. So, when I call another procedure it rollsback
until my first procedure.

It happens because in ASA inserts in temp tables starts a transaction
automatically. BDE handles it with commit or rollback. There is a way to do
it in DBX? How can I force DBX to behave "like BDE" in this case? Is there
another way to solve it.

tia,

Henrique


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.