Is it just 1 value you want to return? If so you can do it along these lines....
VB Code:
...
objParam = objCommand.Parameters.Add("ReturnValue", SqlDbType.Int)
objParam.Direction = ParameterDirection.ReturnValue
...
objCommand.ExecuteNonQuery()
intBlah = objCommand.Parameters("ReturnValue").Value
Code:
SQL
-- return your value at end of proc
return @myValue
Or as i prefer to use the returnValue for error checking you can use OUTPUT parameters instead like this
VB Code:
objParam = objCommand.Parameters.Add("@player_id", SqlDbType.Int, 0)
objParam.Direction = ParameterDirection.Output
objCommand.ExecuteNonQuery()
lngPLayerID = objCommand.Parameters("@player_id").Value
Code:
SQL
-- declare parameter in stored proc header
@player_id int OUTPUT
-- and then something like
select @player_id = @@identity
--or
set @player_id = 3
Hope that helps you out.