Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does SQL Server tables have a Record #
Message
De
09/06/2005 10:30:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
09/06/2005 10:22:26
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01021779
Message ID:
01021782
Vues:
22
>Does SQL Server tables have a Record # similar to vfp's recno() funtion ?
>
>Thanks For Your Help !
>Stephen J. Hunt

In general, a database server does not have a record number. You must identify records by their primary key.

Precisely because there is no such thing as a record number, it is important that the table does, indeed, have a key which identifies each record uniquely.

Of course, if you get the data over a remote view, the records will have a recno() in VFP - but there is no guarantee that the record will have the same number next time.

About the primary keys, you may want to take a look at my article http://www.utmag.com/wconnect/wc.dll?9,7,10,1599

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform