Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use select top with SQL Server 2000
Message
 
To
28/05/2008 16:37:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01320099
Message ID:
01320183
Views:
17
Double check the "Compatibility level" of your database.
sp_dbcmptlevel @dbname = 'MyDatabaseName'
If it shows compatibility level less than 80, then you should either update Compatibility level to be 80
sp_dbcmptlevel @dbname = 'MyDatabaseName', @new_cmptlevel = 80
or use
SET ROWCOUNT { number | @number_var } 
in order to limit the number of records returned.


Cheers,

Zoran

>sqlserver 2000 that i use doesn't recognize the TOP clauseof the select 200 * from ...
>
>in the help file of sqlserver, it said that TOP is a reserved word and it must not be used.
>
>is there a another way to select the n top records ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform