Which will be faster?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mahendra dubey
    New Member
    • Aug 2009
    • 16

    #1

    Which will be faster?

    Hi There

    I am new to c#. I am using SqlDataReader to read database records(using c#).I have found lots of way to do it,but for performance i have found that ordinal reading is fast. Now I want to read a guid field ,as we know that with ordinal reading we can do this in two way
    1)reader.GetGui d(0)
    2) (Guid)reader[0]

    but I don't know which will be faster...
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    What happens if the field is null?

    Comment

    Working...