| View previous topic :: View next topic |
| Author |
Message |
JlouroDEV Guest
|
Posted: Tue Apr 12, 2005 3:06 pm Post subject: NOLOCK in Select |
|
|
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
|
Posted: Tue Apr 12, 2005 3:45 pm Post subject: Re: NOLOCK in Select |
|
|
| 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
|
Posted: Tue Apr 12, 2005 5:25 pm Post subject: Re: NOLOCK in Select |
|
|
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
|
Posted: Tue Apr 12, 2005 5:51 pm Post subject: Re: NOLOCK in Select |
|
|
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
|
Posted: Tue Apr 12, 2005 6:17 pm Post subject: Re: NOLOCK in Select |
|
|
| Quote: | There isn't a optimizer hint equivalent to setting RowCount.
Oh, that would be nice. |
|
|
| Back to top |
|
 |
|