Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SPT and getting 1 record only
Message
 
À
20/08/2000 07:27:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00407001
Message ID:
00407177
Vues:
28
The statement should not need the ; because only fox needs this to continue the line--the whole idea is to pass a single string which will execute in the SQL server as a three line command. We use Microsoft SQL7, but the statement should work for any SQL server, since the syntax is ANSI 92 compatible. The chr(13) carriage return character serves as the line break at the SQL server. An example string would be:

"set rowcount 1"+chr(13)+"select * from pubs order by tag"+chr(13)+"set rowcount 0"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform