Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use select top with SQL Server 2000
Message
 
À
28/05/2008 16:37:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01320099
Message ID:
01320183
Vues:
18
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 ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform