A
Agnes
Please someone be kind to check my code, I don't know what's wrong
Dim cmdUpdate As New SqlCommand()
With cmdUpdate
.Connection = conSea
.CommandText = "dbo.seaexhbl_update"
.CommandType = CommandType.StoredProcedure
End With
Dim prmUpdate
prmUpdate = cmdUpdate.Parameters.Add("@jobno", SqlDbType.Char, 20,
Trim(Me.txtJobNo.Text))
prmUpdate.direction = input
my procedure is
REATE PROCEDURE dbo.seaexhbl_update2
@jobno char(20) ,@hblno char(20),@jobperiod char(6)
as
DECLARE @error int,@rowcount int
update billladingheader
SET number=@hblno,jobno=@jobno,jobperiod=@jobperiod
There is an error [procedure dbo.seaexhbl_update expects '@jobno',which was
not supplied]
Dim cmdUpdate As New SqlCommand()
With cmdUpdate
.Connection = conSea
.CommandText = "dbo.seaexhbl_update"
.CommandType = CommandType.StoredProcedure
End With
Dim prmUpdate
prmUpdate = cmdUpdate.Parameters.Add("@jobno", SqlDbType.Char, 20,
Trim(Me.txtJobNo.Text))
prmUpdate.direction = input
my procedure is
REATE PROCEDURE dbo.seaexhbl_update2
@jobno char(20) ,@hblno char(20),@jobperiod char(6)
as
DECLARE @error int,@rowcount int
update billladingheader
SET number=@hblno,jobno=@jobno,jobperiod=@jobperiod
There is an error [procedure dbo.seaexhbl_update expects '@jobno',which was
not supplied]