Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convering string to val in sql server?
Message
 
À
20/02/2000 05:15:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00334576
Message ID:
00334580
Vues:
13
Mark,

Look at the SQL Server commands CONVERT() and CAST()

From books on line:

CAST and CONVERT (T-SQL)


Explicitly converts an expression of one data type to another. CAST and CONVERT provide similar functionality.

Syntax
Using CAST:


CAST(expression AS data_type)

Using CONVERT:

CONVERT (data_type[(length)], expression [, style])


Cheers,

Andrew

>HI all.
>
>i couldn't find how to convert string (varchar) values to numeric in sql server? any ideas.
>
>thanks in adavnace - Mark.


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform