SqlDataReader Parameters

Hi,

When I used ADO for database queries there was a Refresh method on the Parameters collection of a Command object which I could use to find out what parameters were required for a stored procedure.
Is there a similar way to do this with an SqlCommand object?

Thanks...
LVL 8
bukkoAsked:
Who is Participating?
 
mastooConnect With a Mentor Commented:
Prepare does something different.

Dynamically querying for parameters might be frowned on in some developer circles, but try this:

http://www.dotnet247.com/247reference/msgs/15/79403.aspx
0
 
bukkoAuthor Commented:
...is that what the Prepare function is for?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.