on 07-29-2005 2:34 PM
Hi y'all...
A little question, so just for the weekend...
I've a query that returns 4 fields, the fisrt three always containing data, and the last one an integer, or NULL. If I get the value with <i>rs.Fields.Item(3).Value.ToString();</i> it always contains an integer. The NULL values are always converted to '0'.
How can I check if it is a NULL value?
Okey, found a workaround, using the SQL function ISNULL()...
SELECT ISNULL(U_MyVar, 'null_value') FROM [@MyTable]
Now I can check if the value has the value <i>"null_value"</i>. If so, that field was <i>null</i>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.