If i takes larger datatype where i know i should have taken datatype that was sufficient for possible values that i will insert into a table will affect any performance in sql server in terms of speed or any other way.
eg.
IsActive (0,1,2,3) not more than 3 in any case.
I know i must take tinyint
but due to some reasons consider it as compulsion, i am taking every numeric field as bigint
and every character
field as nVarchar(Max)
Please give statistics if possible, to let me try to overcoming that compulsion.
I need some solid analysis that can really make someone rethink before taking any datatype.
EDIT
Say, I am using
SELECT * FROM tblXYZ where IsActive=1
How will it get affected. Consider i have 1 million records Whether it will only have memory wastage only or perforamance wastage as well. I know more the no of pages more indexing effort is required hence performance will also get affected. But I need some statistics if possible.