P
P
Pavel2011-12-21 13:56:47
SQL Server
Pavel, 2011-12-21 13:56:47

Which is preferable in MS SQL: NULL or empty string?

Tell us about the pros and cons of using nullable fields in tables?
Maybe it's better to make all fields mandatory and write an empty string instead of NULL in empty ones?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
4
4dmonster, 2011-12-21
@4dmonster

It depends on the data in this field and only.

B
bugaga0112358, 2011-12-21
@bugaga0112358

If English is OK, then here is a good discussion .

A
Anatoly, 2011-12-21
@taliban

Also, don't forget that other operations start from scratch. Comparison, more, less, etc. do not fit him.

P
Pavel, 2011-12-21
@region23

and when the data type is DateTime or int?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question