G
Guest
Hi all,
According the MSDN documentation on the SqlDataReader.Close method, it says
that:
The Close method fills in the values for output parameters, return values
and RecordsAffected, increasing the amount of time it takes to close a
SqlDataReader....
Is that mean before I can retrieve the value of stored procedure output
parameters, I should call the SqlDataReader.Close method? But in some sample
code I found on the web, it reads the output parameters before calling the
Close method?
Which is more appropriate?
Thanks for help!
Best Regards,
Tony
According the MSDN documentation on the SqlDataReader.Close method, it says
that:
The Close method fills in the values for output parameters, return values
and RecordsAffected, increasing the amount of time it takes to close a
SqlDataReader....
Is that mean before I can retrieve the value of stored procedure output
parameters, I should call the SqlDataReader.Close method? But in some sample
code I found on the web, it reads the output parameters before calling the
Close method?
Which is more appropriate?
Thanks for help!
Best Regards,
Tony