Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
CrazyT
Yak Posting Veteran
73 Posts |
Posted - 2010-04-02 : 13:18:34
|
| How do i make select top x a variable in a stored procedurewhen i go select top @numberrow ROW_NUMBER() OVER etcI get an error |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-04-02 : 13:20:36
|
| are you using sql 2005 or above? then you can useSELECT TOP (@numberrow) .....------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
CrazyT
Yak Posting Veteran
73 Posts |
Posted - 2010-04-02 : 13:26:37
|
| sql 2005 -- thanks |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-04-02 : 13:27:59
|
| try it and see..it should work unless you dont have any other errors------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|
|