K
Kurt Mang
Sorry - previous post sent on mistake.
Anyways, I can't get the output parameter value back when
I use the DAL application block v. 2.0.
I pass an enumerated value instead of the index value to
the parameter array ("params") for better readability.
THE CODE:
===
Dim params(2) As SqlParameter params =
SqlHelperParameterCache.GetSpParameterSet
("p_Member_InsertUpdate", False)
params(p_Member_InsertUpdate.UserName).Value = UserName
params(p_Member_InsertUpdate.Pass).Value = Password
' output param:
params(p_Member_InsertUpdate.NewID).SqlDbType =
SqlDbType.Int
params(p_Member_InsertUpdate.NewID).Direction =
ParameterDirection.Output
SR.SqlHelper.ExecuteNonQuery
(CommandType.StoredProcedure, "p_Member_InsertUpdate",
params)
MemberID = ctype(params
(p_Member_InsertUpdate.NewID).Value, Integer)
===
I never get the parameter value back. Why not? Any
takers?
Thanks - Kurt
Anyways, I can't get the output parameter value back when
I use the DAL application block v. 2.0.
I pass an enumerated value instead of the index value to
the parameter array ("params") for better readability.
THE CODE:
===
Dim params(2) As SqlParameter params =
SqlHelperParameterCache.GetSpParameterSet
("p_Member_InsertUpdate", False)
params(p_Member_InsertUpdate.UserName).Value = UserName
params(p_Member_InsertUpdate.Pass).Value = Password
' output param:
params(p_Member_InsertUpdate.NewID).SqlDbType =
SqlDbType.Int
params(p_Member_InsertUpdate.NewID).Direction =
ParameterDirection.Output
SR.SqlHelper.ExecuteNonQuery
(CommandType.StoredProcedure, "p_Member_InsertUpdate",
params)
MemberID = ctype(params
(p_Member_InsertUpdate.NewID).Value, Integer)
===
I never get the parameter value back. Why not? Any
takers?
Thanks - Kurt