my output parameters are always null when i use BeginExecuteNonQuery
Posted
by CharlesO
on Stack Overflow
See other posts from Stack Overflow
or by CharlesO
Published on 2010-05-22T09:33:41Z
Indexed on
2010/05/22
9:40 UTC
Read the original article
Hit count: 181
I have a stored procedure that returns a varchar(160) as an output parameter of a stored procedure.
Everything works fine when i use ExecuteNonQuery, i always get back the expected value.
However, once i switch to use BeginExecuteNonQuery, i get a null value for the output.
I am using connString + "Asynchronous Processing=true;" in both cases.
Sadly the BeginExecuteNonQuery is about 1.5 times faster in my case...but i really need the output parameter.
Thanks!
© Stack Overflow or respective owner