 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Jo Beaven Guest
|
Posted: Fri Oct 08, 2004 10:20 am Post subject: Delphi7 ADO MSSQL2000 Deadlock? |
|
|
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
|
Posted: Wed Nov 17, 2004 6:01 pm Post subject: Re: Delphi7 ADO MSSQL2000 Deadlock? |
|
|
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 |
|
 |
|
|
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
|
|