Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > SqlDataReader and strings

Thread Tools

SqlDataReader and strings

Posts: n/a
I'm using a SqlDataReader to get data. I have a 2 byte char field that has a
default value of ''. When I retrieve the data in ASP.NET, I end up with a
string that has one blank space, even when the field is empty in the
database. I've tried retrieving both as a string and as a SqlString, with
the same results.
Reply With Quote

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
Strings, Strings and Damned Strings Ben C Programming 14 06-24-2006 05:09 AM
SqlDataReader and 3-tier TomislaW ASP .Net 3 11-19-2004 02:01 AM
DataBind and SqlDataReader Gawel ASP .Net 4 05-22-2004 10:31 AM
SqlDataReader and Return Value Binny ASP .Net 2 12-15-2003 12:57 PM
Stored Procedure has both return value and data set (SqlDataReader) Neo Chou ASP .Net 1 08-03-2003 06:23 AM