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 

SQL Server/BDE/nowait locks?

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





PostPosted: Wed Dec 03, 2003 8:10 pm    Post subject: SQL Server/BDE/nowait locks? Reply with quote



I had asked this question in the bde newsgroup but wa told to try here.

I am using BDE to SQL Server 2000. It seems that when I run a select query
and
there is a lock, it just sits there waiting for the lock to be release and
eventually it will time out. Is there any setting I can make on the BDE to
force SQL Server not to wait and raise an error immediately, sort of like
the NOWAIT
in the Interbase SQL Links?

Please don't tell me not to use the BDE, that's its been depricated etc. I
know all that. We are using Corelab's SDAC for our newer apps but haven't
had time to convert them all so some of the programs are still using the
BDE. I just wait an answer to the question I asked.

Thanks

Jeff



Back to top
Kevin Frevert
Guest





PostPosted: Wed Dec 03, 2003 8:17 pm    Post subject: Re: SQL Server/BDE/nowait locks? Reply with quote



Jeff,

You can try the READPAST query optimizer hint (see Books Online for the
complete list of optimizer hints)

Select
C.CustNum, C.FirstName, C.LastName
From
dbo.Customers C (READPAST)
Where
{what ever}

Good luck,
krf

"Jeff Butterworth" <jefbut (AT) drs (DOT) com.au> wrote

Quote:
I had asked this question in the bde newsgroup but wa told to try here.

I am using BDE to SQL Server 2000. It seems that when I run a select query
and
there is a lock, it just sits there waiting for the lock to be release and
eventually it will time out. Is there any setting I can make on the BDE to
force SQL Server not to wait and raise an error immediately, sort of like
the NOWAIT
in the Interbase SQL Links?

Please don't tell me not to use the BDE, that's its been depricated etc. I
know all that. We are using Corelab's SDAC for our newer apps but haven't
had time to convert them all so some of the programs are still using the
BDE. I just wait an answer to the question I asked.

Thanks

Jeff






Back to top
Jeff Butterworth
Guest





PostPosted: Wed Dec 03, 2003 9:31 pm    Post subject: Re: SQL Server/BDE/nowait locks? Reply with quote



Wasn't quite what I was after but it is an interesting possibility.

I think its actually the @@LOCK_TIMEOUT variable in SQL Server that I really
need to adjust.

Jeff


"Kevin Frevert" <Work (AT) drinkingcoffee (DOT) com> wrote

Quote:
Jeff,

You can try the READPAST query optimizer hint (see Books Online for the
complete list of optimizer hints)

Select
C.CustNum, C.FirstName, C.LastName
From
dbo.Customers C (READPAST)
Where
{what ever}

Good luck,
krf




Back to top
Kevin Frevert
Guest





PostPosted: Wed Dec 03, 2003 9:46 pm    Post subject: Re: SQL Server/BDE/nowait locks? Reply with quote

Jeff,

Another option is in the BDE Admin
- Select the Configuration tab, expand off the Configuration tree until you
get to :
Configuration->Drivers->Native->MSSQL
- On the Right-hand side of the BDE Administrator, select the TimeOut , set
the value to 0 (wait forever)

Good luck,
krf

"Jeff Butterworth" <jefbut (AT) drs (DOT) com.au> wrote

Quote:
Wasn't quite what I was after but it is an interesting possibility.

I think its actually the @@LOCK_TIMEOUT variable in SQL Server that I
really
need to adjust.

Jeff



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.