 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Brian Guest
|
Posted: Tue Jan 27, 2004 12:59 am Post subject: BDE, MS Sql Server ODBC, deadlocking |
|
|
Delphi Gurus:
I am supporting Delphi 2 app which uses BDE (5.2 or 5.1.1) to connect
to MS Sql Server 2000 sp3 db. I am having a deadlocking issue when I
use the MS ODBC connection. The app works fine if I use SqlLinks
MSSQL.
The ODBC driver seems to spin off a second Connection within a single
Transaction. That second connection then creates a deadlock. Up to
this point, I have looked into:
1. BDE parameters
2. ODBC parameters
I couldn't find anything to force and maintain a single connection.
I have not seen any MS Sql Server commands (server level or database
level) that I think (in my limited knowledge) will help. I am
resorting to changing all my SELECTs to SELECTs WITH NOLOCK. This
seems to help but I can still produce the problem occasionally.
Any ideas?
Thanks in advance,
Brian
|
|
| Back to top |
|
 |
Rick Carter Guest
|
Posted: Sat Jan 31, 2004 2:09 pm Post subject: Re: BDE, MS Sql Server ODBC, deadlocking |
|
|
[email]b.groves (AT) mindspring (DOT) com[/email] (Brian) wrote in message news:<f915e366.0401261659.5a54aad5 (AT) posting (DOT) google.com>...
| Quote: | I am supporting Delphi 2 app which uses BDE (5.2 or 5.1.1) to connect
to MS Sql Server 2000 sp3 db. I am having a deadlocking issue when I
use the MS ODBC connection. The app works fine if I use SqlLinks
MSSQL.
|
Well, considering the old and unsupported technology you're using, be
thankful you have one way that works. Why not forget about using the ODBC?
If you're planning to support this app for a long time, and probably have
to eventually work under a later version of SQL Server, it's probably time
to bite the bullet and move to a version of Delphi that supports ADO or
dbExpress. If your company will spring for it, go ahead and move to the
Delphi 7/8 bundle.
Rick Carter
Chair, Paradox/Delphi SIG, Cincinnati PC Users Group
|
|
| 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
|
|