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 |
|
craigh999
Starting Member
10 Posts |
Posted - 2004-08-27 : 07:54:40
|
| Hi PeopleI am trying to update top N records of a table, CREATE PROCEDURE [GetDataForOutput] @vnAmount intASUPDATE tempImportSET status = 3 FROM (SELECT top @vnAmount * FROM TempImport ) AS t1WHERE TempImport.id = t1.idFor some reason i cant pass the top value as a parameter! if i exchange the @vnamount to 10 say it works fine?Any help much appreciated |
|
|
RickD
Slow But Sure Yak Herding Master
3608 Posts |
Posted - 2004-08-27 : 07:57:42
|
| This will help you...http://www.sqlteam.com/item.asp?ItemID=233 |
 |
|
|
craigh999
Starting Member
10 Posts |
Posted - 2004-08-27 : 08:11:26
|
| thanksappreciate it |
 |
|
|
|
|
|