![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In the BOL for SET ROWCOUNT, it says: "It is recommended that DELETE, INSERT, and UPDATE statements currently using SET ROWCOUNT be rewritten to use the TOP syntax." However, TOP Doesn't see to work with a variable. For example, SELECT TOP @MyNum * FROM MyTable Is it ok to use ROWCOUNT if you have a dynamic # of rows? |
#3
| |||
| |||
|
|
In the BOL for SET ROWCOUNT, it says: "It is recommended that DELETE, INSERT, and UPDATE statements currently using SET ROWCOUNT be rewritten to use the TOP syntax." However, TOP Doesn't see to work with a variable. For example, SELECT TOP @MyNum * FROM MyTable Is it ok to use ROWCOUNT if you have a dynamic # of rows? |
![]() |
| Thread Tools | |
| Display Modes | |
| |