I have a stored procedure with a decimal parameter .
how can send the decimal value?
I try this but it gives an error , invalid cast specified.
Dim p1 As SqlParameter = .Parameters.Add ("@EstConstruct ionCost_10",
System.Data.Sql DbType.Decimal, 9).Value = CDbl(txtEstCons tructionCost.Te xt)
' Dim p1 As SqlParameter = .Parameters.Add ("@EstConstruct ionCost_10",
System.Data.Sql DbType.Decimal) .Value = 10
p1.Precision = 10
p1.Scale = 0
I appreciate any help
how can send the decimal value?
I try this but it gives an error , invalid cast specified.
Dim p1 As SqlParameter = .Parameters.Add ("@EstConstruct ionCost_10",
System.Data.Sql DbType.Decimal, 9).Value = CDbl(txtEstCons tructionCost.Te xt)
' Dim p1 As SqlParameter = .Parameters.Add ("@EstConstruct ionCost_10",
System.Data.Sql DbType.Decimal) .Value = 10
p1.Precision = 10
p1.Scale = 0
I appreciate any help
Comment