• Oleg Netchaev (8/23/2010)


    This is by design and has also been covered many times in recent QotDs. Forgetting to specify the size when declaring a local variable results in size defaulting to 1 while forgetting to specify the size when using convert - 30. Because the 101 format means mm/dd/yyyy, totalling 10 characters, the result of the query is 10 because the default 30 is greater than that.

    Oleg

    Thanks.

    I never like using implicit coding like this. It seems lazy and risky.