Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > SqlHelper problem

Reply
Thread Tools

SqlHelper problem

 
 
Mike Fors
Guest
Posts: n/a
 
      08-22-2003

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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SQLHelper class problem : To Gregory A. Beamer Rajesh Kumar ASP .Net 1 11-14-2009 03:40 AM
problems inserting into sql using SqlHelper.ExecuteScalar Chad Dittmer via .NET 247 ASP .Net 1 09-15-2004 06:57 PM
sqlhelper.filldataset timeout Eyal Sharabi Horwitz ASP .Net 0 07-29-2004 01:24 AM
SQLHelper Class problem : For Gregory A. Beamer Rajesh Madhra ASP .Net 0 07-18-2003 04:23 PM
SQLHelper Class problem Rajesh Madhra ASP .Net 0 07-16-2003 05:06 PM



Advertisments