Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spatial data type and Varchar(100)
Message
From
20/11/2011 16:14:25
 
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:
01529323
Views:
25
>Because both CONVERT() exceeds the defined length of the field.
>
>UPDATE ... SET ...
>           GeographyTemporary='POINT('+CONVERT(CHAR(100),Longitude)+' '+CONVERT(CHAR(100),Latitude)+')'
>
>Will give you total length of 208 and the field is defined as CHAR(100).

Thanks, so basically, if I would want to use a Char field type, I would need to define it 208. When using Varchar(100), its maximum length is much greater than 100 then. Do you know what it is? Or, if I would wish to define it to a lower value, to support this, would there be a better field declaration than 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