Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Char(100) field VS Text
Message
From
19/04/2012 15:17:34
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01542085
Message ID:
01542165
Views:
28
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform