Check for column name in a SqlDataReader object

Posted by Michael Kniskern on Stack Overflow See other posts from Stack Overflow or by Michael Kniskern
Published on 2008-12-17T00:01:19Z Indexed on 2010/04/22 7:13 UTC
Read the original article Hit count: 237

Filed under:
|
|

How do I check to see if a column exists in a SqlDataReader object? In my data access layer, I have create a method that builds the same object for multiple stored procedures calls. One of the stored procedures has an additional column that is not used by the other stored procedures. I want to modified the method to accommodate for every scenario.

My application is written in C#.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#