Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remote view TOP n with n as a param
Message
De
18/11/2013 00:03:14
 
 
À
17/11/2013 23:28:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01588219
Message ID:
01588220
Vues:
51
This message has been marked as a message which has helped to the initial question of the thread.
Charles, I tend to doubt this will help - so consider this a "Hail Mary" attempt....but it's the only thing I can think of.

In SQL Server, this doesn't work...
declare @RowsToGet int
set @RowsToGet = 10
select top @RowsToGet  * from SomeTable

However, this does (requires parenthesis around the parameter variable for SQL to evaluate it)
declare @RowsToGet int
set @RowsToGet = 10
select top (@RowsToGet)  * from SomeTable
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform