Ask a Question related to ASP.NET General, Design and Development.
-
Mona #1
Called a Stored Procedure , decimal parameter
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("@EstConstructionCost_10",
System.Data.SqlDbType.Decimal, 9).Value = CDbl(txtEstConstructionCost.Text)
' Dim p1 As SqlParameter = .Parameters.Add("@EstConstructionCost_10",
System.Data.SqlDbType.Decimal).Value = 10
p1.Precision = 10
p1.Scale = 0
I appreciate any help
Mona Guest
-
#40143 [Opn->Bgs]: how to get parameter values of stored procedure.?
ID: 40143 Updated by: tony2001@php.net Reported By: hd4_all at yahoo dot co dot in -Status: Open +Status: ... -
#40143 [NEW]: how to get parameter values of stored procedure.?
From: hd4_all at yahoo dot co dot in Operating system: windows 2000 prof. PHP version: 5.2.0 PHP Bug Type: MySQLi related... -
populate datagrid with stored procedure w/parameter
All, I'm trying to populate a datagrid with a data adapter that uses a stored procedure with a parameter. I get the below error when I run my... -
Stored Procedure/Parameter problem
I'm getting an error I don't understand.... Here's my Code: Dim dr As SqlDataReader Dim retVal As Boolean = False Dim MySQL as string =... -
Call a stored procedure with decimal parameter
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. ... -
Tu-Thach #2
Called a Stored Procedure , decimal parameter
You might want to use CDec instead of CDbl.
Tu-Thach
specified.>-----Original Message-----
>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("@EstConstructionCost_10",>
>Dim p1 As SqlParameter = .Parameters.Add(txtEstConstructionCost.Text)>System.Data.SqlDbType.Decimal, 9).Value = CDbl("@EstConstructionCost_10",>
>' Dim p1 As SqlParameter = .Parameters.Add>System.Data.SqlDbType.Decimal).Value = 10
>
>p1.Precision = 10
>
>p1.Scale = 0
>I appreciate any help
>
>
>
>
>
>.
>Tu-Thach Guest



Reply With Quote

