Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting string to numeric
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01544642
Message ID:
01544661
Views:
21
>>>When I change to the following:
>>>
>>>param.SqlDbType = System.Data.SqlDbType.Decimal;
>>>param.Value = 0.00;  
>>>
>>>
>>>I get compiler error.
>>
>>What?
>
>What I wrote in the other message about "The explicit conversion exists (are you missing a cast?)"


That works for me:
 SqlCommand sql = new SqlCommand();
sql.Parameters.Add("asd");
sql.Parameters[0].SqlDbType = SqlDbType.Decimal;
sql.Parameters[0].Size = 10;
sql.Parameters[0].Value = 0.00;
sql.Parameters[0].Direction = ParameterDirection.InputOutput;
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform