Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert a varchar to a float in a view
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Titre:
Convert a varchar to a float in a view
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01316944
Message ID:
01316944
Vues:
45
Hi all!

I have an SQL database that is set up to store Latitude and Longitude in a Varchar field. I need to convert the Varchar to a float or decimal in a view. I am not having any luck using cast or convert to make the change can anyone suggest a way to make this happen? The data in the Varchar field looks like this 95.12345 for Latitude and -68.12345 for Longitude.

Thanks!

Jim Harvey
James Harvey, MCP
Memphis Police Department
225 Channel Three DR
Memphis, TN 38103
901 577-1296
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform