Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What should I do for NULLs?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01331280
Message ID:
01331376
Vues:
12
>If NULLS are the problem, you could replace null values in your select statement by using the ISNULL clause for the columns that could have a NULL value and replace with a space as follows:
>
>select isnull(columnName, ' ') as columnName
>
Yes, that's what I done, however, I'm now thinking that the values will become not null in return causing insertion of an extra record. I'll try to update my SP to make sure to only take real data back.

I'm also thinking the problem had to be with bit (Boolean) fields. Somehow checked property doesn't want to be null, I'm thinking.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform