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 |
|
jaishankar
Starting Member
1 Post |
Posted - 2008-01-14 : 06:49:45
|
| How can I implement @Parameter in the Select Top * statement in SQL Server 2005create Proc ProDemo(@N int)as beginselect top (@N) * from CT_EDIApp_BatchMaster order by NEWID()endRegards, Jai Shankar |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-01-14 : 06:57:53
|
quote: Originally posted by jaishankar How can I implement @Parameter in the Select Top * statement in SQL Server 2005create Proc ProDemo(@N int)as beginselect top (@N) * from CT_EDIApp_BatchMaster order by NEWID()endRegards, Jai Shankar
Did you get any error?MadhivananFailing to plan is Planning to fail |
 |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2008-01-14 : 07:00:01
|
| Check the database compatibility is set to 90.Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
|
|
|