'my vb.net getting parameter
Dim parameter3 As New SqlParameter()
parameter3.ParameterName = "@totchrgs"
parameter3.SqlDbType = SqlDbType.Money
parameter3.Direction = ParameterDirection.Output
'my sql SProc
ALTER proc [dbo].[sp_getlanxchrgs]
(
@sopnumbe nvarchar(21),
@bachnumb nvarchar(15),
@totchrgs Decimal(9,2) Output
)
as
SET NOCOUNT ON
begin
select @totchrgs = sum(a.unitprce)
from dbo.boa_sop_lines_vw a,
dbo.boa_sop_header_vw b
where a.sopnumbe = b.sopnumbe and
a.sopnumbe = @sopnumbe and
b.bachnumb = @bachnumb