Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Char(100) field VS Text
Message
De
19/04/2012 15:17:34
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01542085
Message ID:
01542165
Vues:
29
>I used REPLACE command to demonstrate that the spaces are still intact after the switch. As Dan suggests, if you need to change char to varchar after the fact, the better way is to create new structure and re-load the table.
>
>REPLACE command in T-SQL is the same as STRTRAN in VFP.

Ah ok, I see. But, moving 26 million records into a new table just to get rid of the spacing issue might end up to take longer than simply replacing the actual spacing values with an empty string. IAC, on that particular table, the field does not exist yet. And, it will be VarChar(100).
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform