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 

odd disconnecting from database

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.databases
View previous topic :: View next topic  
Author Message
Larry Peeters
Guest





PostPosted: Wed Jan 07, 2004 11:34 am    Post subject: odd disconnecting from database Reply with quote



Hi there,

I have the following problem:

I have created an application that preforms several queries against an
MS SQL Server database within one transaction. I have created
procedures to start and commit/rollback the transaction and to open
and close the database connection. When I start the application, the
execution time of the complete transaction is much longer than I would
have expected (execution time is long, since there are a lot of
queries within the transaction). When I turn on the trace within MS
SQL, I find that every now and then there's a connect when the
connection is already open and that it disconnects and reconnects
(strangly enough, the transaction is maintained). I noticed that this
discconnecting and connecting thing takes up to more than half of the
execution time. However, according to Delphi, the application does not
trigger the procedures for connecting and disconnecting.
I am using a TDatabase component to connect to the database and a
TQuery component to create and execute the several queries, so I use
the BDE.

I also use this application against an Oracle database and the
transaction take just the same (long) time to complete, however I have
not yet been able to trace within Oracle, as my Oracle server has
crashed.

Does somebody have a clue as what might cause the (dis)connection?

kind regards,

Larry Peeters.
Back to top
Ryan
Guest





PostPosted: Thu Jan 08, 2004 8:52 am    Post subject: Re: odd disconnecting from database Reply with quote



Try running the SQL monitor that comes with Delphi. It may give you
some clues as to what is happening.

[email]lpeeters (AT) primaplan (DOT) com[/email] (Larry Peeters) wrote in message news:<703d858d.0401070334.2a0df663 (AT) posting (DOT) google.com>...
Quote:
Hi there,

I have the following problem:

I have created an application that preforms several queries against an
MS SQL Server database within one transaction. I have created
procedures to start and commit/rollback the transaction and to open
and close the database connection. When I start the application, the
execution time of the complete transaction is much longer than I would
have expected (execution time is long, since there are a lot of
queries within the transaction). When I turn on the trace within MS
SQL, I find that every now and then there's a connect when the
connection is already open and that it disconnects and reconnects
(strangly enough, the transaction is maintained). I noticed that this
discconnecting and connecting thing takes up to more than half of the
execution time. However, according to Delphi, the application does not
trigger the procedures for connecting and disconnecting.
I am using a TDatabase component to connect to the database and a
TQuery component to create and execute the several queries, so I use
the BDE.

I also use this application against an Oracle database and the
transaction take just the same (long) time to complete, however I have
not yet been able to trace within Oracle, as my Oracle server has
crashed.

Does somebody have a clue as what might cause the (dis)connection?

kind regards,

Larry Peeters.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.databases 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.