Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Spatial data type and Varchar(100)
Message
De
20/11/2011 16:14:25
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01529320
Message ID:
01529323
Vues:
24
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform