Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with integer conversion
Message
De
12/09/2013 11:32:40
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 6.5 and older
Application:
Web
Divers
Thread ID:
01582916
Message ID:
01583024
Vues:
50
>
>The original problem is because he used AddWithValue and the parameter was send as varchar. If he would use Add and exact type, this would not happen.
>
>BTW, this works
>
>SELECT CAST( 123.45 AS INT)
Well there you go. It occurred to me last night that perhaps the original code would work if I did this:
oCommand.Parameters.AddWithValue("@AmendmentNumber", Val(Amendments_DDL.SelectedValue))
And sure enough it does.
Thanks to all.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform