SqlHelper problem

Discussion in 'ASP .Net' started by Mike Fors, Aug 22, 2003.

  1. Mike Fors

    Mike Fors Guest

    Why does the following code error out when there is a null
    in the field I'm trying to retrieve? As it stands I need
    to check each field for nulls. Anybody know of an easier
    way?

    SqlDataReader MyDR = SqlHelper.ExecuteReader
    (SessionInfo.ConnString, "sp_SctyDetail", sctyid);

    SctyDetail MySctyDetail = new SctyDetail();

    MySctyDetail.sctypersid = MyDR.GetInt32(1);

    Mike
     
    Mike Fors, Aug 22, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rajesh Madhra

    SQLHelper Class problem

    Rajesh Madhra, Jul 16, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    466
    Rajesh Madhra
    Jul 16, 2003
  2. Rajesh Kumar
    Replies:
    1
    Views:
    2,151
    samir1_84
    Nov 14, 2009
  3. Rajesh Madhra
    Replies:
    0
    Views:
    535
    Rajesh Madhra
    Jul 18, 2003
  4. Eyal Sharabi Horwitz

    sqlhelper.filldataset timeout

    Eyal Sharabi Horwitz, Jul 29, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    1,601
    Eyal Sharabi Horwitz
    Jul 29, 2004
  5. Chad Dittmer via .NET 247

    problems inserting into sql using SqlHelper.ExecuteScalar

    Chad Dittmer via .NET 247, Sep 15, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,549
    Hermit Dave
    Sep 15, 2004
Loading...

Share This Page