<undefined valule>

  • Thread starter Thread starter Guinness Mann
  • Start date Start date
G

Guinness Mann

Greetings,

I'm developing database applications using C# on VS.NET 2003 and SQL
Server Standard edition (SP3a), and the Microsoft Data Application
Blocks.

I've run into a situation I'm trying to understand, to wit, if I submit
a query using SqlHelper.ExecuteScalar which returns no results, why is
the returned item a System.Object of <undefined value>?

How do I do error checking for that condition?

I guess I can sort of see why they didn't want to throw an exception --
lot's of queries don't return any results, but on the other hand, I
can't figure out how to test for <undefined value>, either.

Any ideas?

-- Rick
 
I don't have an answer, but wanted to let you know there is a
group, at asp.net forms, specifically for the MS Data Access
Application Block.

http://www.asp.net/Forums/ShowForum.aspx?tabindex=1&ForumID=117

Thanks, Chance. I'll crosspost over there. If I get crosspost flames
I'll send them to you. :-)

But...I traced through the MDAB code and the phenomenon is totally
unrelated to MDAB. I only mentioned it for completeness. MDAB simply
returns the ADO.NET value which is... <undefined value>

-- Rick
 
Ok, it's obvious that no one here cares about my <undefined value>. Can
any of you suggest someplace that might be more receptive to my query?

(I posted it on asp.net in the MDAB forum, but it's not really an MDAB
issue, and the traffic (on that forum) is very low.)

-- Rick
 
Back
Top