views:

64

answers:

1

Right now I'm working on a dataset where I would like to return records where a certain field is NOT NULL. The dataset is result of a table join.

My resulting set is still returning records where the field I told not to return NULL look empty. I'd like to see what the true value in these records are since they don't seem to be true NULL.

Is there a way to get Management Studio to show spaces as a character just so I can see what's in there if anything?

+1  A: 

Not directly.

You'll have to modify the query. Use replace to turn spaces into something else?

REPLACE(MyCol, ' ', '#')
gbn
Do I have to declare that at the top of the whole query or can I put it like this:WHERE REPLACE(DischargeDateTime,' ', '#') IS NOT NULL
SQLChicken
It would be in the SELECT REPLACE(DischargeDateTime,' ', '#') FROm MYTable WHERE DischargeDateTime IS NOT NULL
gbn