I'm using Vb 2005 and Sql 2005. I'm trying to use the ParameterDirection.inputout... and it's not working.
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
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 I've tried running this for.. since it seems to increment each time I run it.
now.. if I take comment out the
.Parameters("@intTblWaitingListId").Direction = ParameterDirection.InputOutput
then the value getting passed into @intTblWaitingListId is the value I want.
anyone have any ideas...
thanks
shannon
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
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 I've tried running this for.. since it seems to increment each time I run it.
now.. if I take comment out the
.Parameters("@intTblWaitingListId").Direction = ParameterDirection.InputOutput
then the value getting passed into @intTblWaitingListId is the value I want.
anyone have any ideas...
thanks
shannon