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 

NOLOCK in Select

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





PostPosted: Tue Apr 12, 2005 3:06 pm    Post subject: NOLOCK in Select Reply with quote



Hello

I am using the "With (NoLock)" in the select clause.

Since I have several Selects I wander if there is something like the "SET
ROWCOUNT" to set the "TOP" for several "SELECT" clauses.



Thanks



Joćo Louro


Back to top
Patrick
Guest





PostPosted: Tue Apr 12, 2005 3:45 pm    Post subject: Re: NOLOCK in Select Reply with quote



Quote:
I am using the "With (NoLock)" in the select clause.
Should not impact SET ROWCOUNT at all


Quote:
Since I have several Selects I wander if there is something like the "SET
ROWCOUNT" to set the "TOP" for several "SELECT" clauses.
SET ROWCOUNT <number> to set the ROWCOUNT for the current session

SET ROWCOUNT 0 to set it back to all.

(MS-SQL 2K)



Back to top
JlouroDEV
Guest





PostPosted: Tue Apr 12, 2005 5:25 pm    Post subject: Re: NOLOCK in Select Reply with quote



Sorry its not that

I am using the "WITH (NOLOCK)" in several "SELECT", I want to now if there
is something like the "SET ROWCOUNT", to help us not to put one TOP in every
"SELECT" for this the "With (NOLOCK)" ?



Sorry for the previous question.



"Patrick" <pdc (AT) novusprintmedia (DOT) com> wrote

Quote:
I am using the "With (NoLock)" in the select clause.
Should not impact SET ROWCOUNT at all

Since I have several Selects I wander if there is something like the "SET
ROWCOUNT" to set the "TOP" for several "SELECT" clauses.
SET ROWCOUNT <number> to set the ROWCOUNT for the current session
SET ROWCOUNT 0 to set it back to all.

(MS-SQL 2K)




Back to top
Kevin Frevert
Guest





PostPosted: Tue Apr 12, 2005 5:51 pm    Post subject: Re: NOLOCK in Select Reply with quote

There isn't a optimizer hint equivalent to setting RowCount.

Good luck,
krf

"JlouroDEV" <joao.louro (AT) co (DOT) sapo.pt> wrote

Quote:
Sorry its not that

I am using the "WITH (NOLOCK)" in several "SELECT", I want to now if there
is something like the "SET ROWCOUNT", to help us not to put one TOP in
every
"SELECT" for this the "With (NOLOCK)" ?



Sorry for the previous question.



Back to top
Patrick
Guest





PostPosted: Tue Apr 12, 2005 6:17 pm    Post subject: Re: NOLOCK in Select Reply with quote

Quote:
There isn't a optimizer hint equivalent to setting RowCount.
Oh, that would be nice.




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.