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 

BDE, MS Sql Server ODBC, deadlocking

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





PostPosted: Tue Jan 27, 2004 12:59 am    Post subject: BDE, MS Sql Server ODBC, deadlocking Reply with quote



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





PostPosted: Sat Jan 31, 2004 2:09 pm    Post subject: Re: BDE, MS Sql Server ODBC, deadlocking Reply with quote



[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
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.