jvcoach23
Well-known member
Im using Vb 2005 and Sql 2005. Im trying to use the ParameterDirection.inputout... and its not working.
when i trace this in sql.. this is what it is sending in
the set @p1=8.. the 8 seems to be the number of times Ive tried running this for.. since it seems to increment each time I run it.
now.. if I take comment out the
then the value getting passed into @intTblWaitingListId is the value I want.
anyone have any ideas...
thanks
shannon
Code:
With cm
.Parameters.Add("@intTblWaitingListId", SqlDbType.Int).Value = mintTblWaitingListId
.Parameters("@intTblWaitingListId").Direction = ParameterDirection.InputOutput
end with
cn.Open()
cm.ExecuteNonQuery()
when i trace this in sql.. this is what it is sending in
Code:
declare @p1 int
set @p1=8
exec spWaitingList_Save @intTblWaitingListId=@p1 output,@intTblCamperId=781,@intTblWeekId=1,@intPriority=0,@intMisses=0
select @p1
the set @p1=8.. the 8 seems to be the number of times Ive tried running this for.. since it seems to increment each time I run it.
now.. if I take comment out the
Code:
.Parameters("@intTblWaitingListId").Direction = ParameterDirection.InputOutput
then the value getting passed into @intTblWaitingListId is the value I want.
anyone have any ideas...
thanks
shannon