Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Varchar versus Text Data Type in SQL Server
Message
De
03/03/1999 17:55:41
Bob Lucas
The WordWare Agency
Alberta, Canada
 
 
À
03/03/1999 17:06:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00193789
Message ID:
00193812
Vues:
18
>Is there an advantage to using Varchar over Text in SQL*Server? Let's say I have a situation where the expected limits are under 4000 bytes, so that I might be willing to force a truncation in an Edit region, if there were benefits. Is there a (performance or feature-based) reason to avoid Text? Given my VFP heritage, my inclination is to think of Text as like Memo, and use it for anything long.
>
>TIA,
>
>-- Randy

Varchar holds only up to 255 chars. If you need more than that you should use text. Text fields are not nearly as easy to use within Transact-SQL as memo fields, but they look just like regular memo fields in VFP. There can be problems with updating text fields when the VFP remote view is based on a SQL Server view. Remote views based on tables work fine.

Text fields are slower in SQL that varchars, but that is to be expected. Like memo fields, you can't do LIKE operations.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform