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 

Delphi7 ADO MSSQL2000 Deadlock?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Jo Beaven
Guest





PostPosted: Fri Oct 08, 2004 10:20 am    Post subject: Delphi7 ADO MSSQL2000 Deadlock? Reply with quote



I've written a multi-tier application that uses Delphi ADO classes in the
middle tier to connect to a MSSQL2000 database.
Whilst it was deployed on a customer site the database got into a state
whereby issuing a simple select command in Query Analyzer on a small table
(10 records, 6 columns) would not return a recordset - even after 90
seconds.
However when the middle tier app was terminated the query would run as
expected. If I started the middle tier server again the problem would
return. Eventually I got around it be restarting the MSSQLServer service and
its OK now.
Just wondered if anyone had experienced anything similar? Is it a deadlock
issue? I didn't think Selects required a lock?

Thanks

Jo Beaven


Back to top
Mark L. Tiede
Guest





PostPosted: Wed Nov 17, 2004 6:01 pm    Post subject: Re: Delphi7 ADO MSSQL2000 Deadlock? Reply with quote



Jo,

Did you have a transaction involved and did you either commit or
rollback? If the app was in the middle of the transaction, that could
potentially tie up the database.


"Jo Beaven" <jo (AT) donor2000 (DOT) co.uk> wrote

Quote:
I've written a multi-tier application that uses Delphi ADO classes in the
middle tier to connect to a MSSQL2000 database.
Whilst it was deployed on a customer site the database got into a state
whereby issuing a simple select command in Query Analyzer on a small table
(10 records, 6 columns) would not return a recordset - even after 90
seconds.
However when the middle tier app was terminated the query would run as
expected. If I started the middle tier server again the problem would
return. Eventually I got around it be restarting the MSSQLServer service
and
its OK now.
Just wondered if anyone had experienced anything similar? Is it a deadlock
issue? I didn't think Selects required a lock?

Thanks

Jo Beaven





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) 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.