Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spatial data type and Varchar(100)
Message
From
20/11/2011 16:46:24
 
 
To
20/11/2011 16:26:32
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01529320
Message ID:
01529326
Views:
29
>Thanks, then, the maximum values for those would be:
>
>POINT(-999.99999 -999.99999)
>
>which would means that Char(28) would be big enough. Then, at the code level, as you mentioned, I would kept the usage of Varchar(100) just to have a proper conversion which would remove the trailing spaces and that should fit.

Yes, with this example you can use var/char(28) field.

>
>Is this pretty much the maximum optimization I could do here if I would want to keep the field definition to its minimum declaration?
You could use varchar() field type, so if the length of the string is smaller than 28 it will be stored with its real length, not padded.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform