Forum Replies Created

Viewing 15 posts - 3,016 through 3,030 (of 3,348 total)

  • RE: Inequality!

    Steve Jones - Editor (7/6/2009)


    I shall look over the explanation and change it.

    Hi Steve,

    I see that you now have made a small change to the explanation, but I still do...

  • RE: Inequality!

    Kelsey Thornton (7/6/2009)


    good question.

    Why is it "always a better practice to be checking for equality in conditions rather than inequality"?

    It's not.

    The question is good, but the explanation is utter nonsense.

  • RE: Inequality!

    Tao Klerks (7/6/2009)


    (interesting, at least to me, because SQL server truncates trailing spaces when doing string comparisons, for long-time backwards-compatibility with "char()" datatypes I assume - the answer is the...

  • RE: char and varchar!

    Hi Ed,

    Your calculation is correct. And you'll find the exact same calculation in the topics on estimating the size of clustered indexes and heaps (except that in those, ALL columns...

  • RE: char and varchar!

    Hi Ed,

    I checked the BOL article you mention, but I failed to see any mention of varying length columns taking up more space. Maybe you can quote the relevant paragraph(s)?...

  • RE: char and varchar!

    EdVassie (7/2/2009)


    Another important thing to remember is that varchar uses more space in an index than does a char column.

    This is not correct. Space usage of char and varchar in...

  • RE: Disabling Indexes

    Some people are wondering why clustered indexes are treated different from non-clustered indexes and indexes on views.

    Remember that nonclustered indexes on tables are redundant data. They can be reconstructed anytime...

  • RE: VARCHAR vs CHAR - Table DataSpace in SQL2005

    Thanks for the kind words. It was a pleasure to help, and a fun challlenge to figure out! 🙂

    I like the suggestion to make this into a QotD, and I'll...

  • RE: VARCHAR vs CHAR - Table DataSpace in SQL2005

    AAARRGGHHH!! I did it again! Clicked "Post" after crafting a length reply without first copying it to a safe place, and got a site error. I *so* hate this interface!!

    Here...

  • RE: VARCHAR vs CHAR - Table DataSpace in SQL2005

    (censored)! I hate it when that happens. I spent a long time crafting a lengthy reply, then I get an error message when posting and I can't get my text...

  • RE: one character of data

    Paul White (6/17/2009)


    It might pay those bemoaning the quality of the question to submit a better one...?

    😎

    Heh heh! Good point, Paul!

    Since I already did submit a few questions some time...

  • RE: one character of data

    David Burrows (6/17/2009)


    But those advocating nchar are also making an assumption :blink:

    Anyone using nchar on an assumption deserves Pork Chops thrown at them in my view :w00t:

    Hi David,

    If forced to...

  • RE: VARCHAR vs CHAR - Table DataSpace in SQL2005

    Hi Ol'SureHand,

    This is an intriguing problem indeed. And I can't say from just this description what the cause can be. So I ask you to follow some trouble-shooting steps.

    First, in...

  • RE: one character of data

    Ol'SureHand (6/16/2009)


    Hugo Kornelis (6/16/2009)


    Ol'SureHand (6/15/2009)


    .. why varchar(35) seems to occupy more dataspace than char(35) when the actual data stored in both cases is only 6 bytes ...

    If you post...

  • RE: one character of data

    Ol'SureHand (6/15/2009)


    Two things:

    - from your explanation, the min. storage space of a varchar is 2 bytes (not 3 as some seem to believe)

    Minimum storage for any varchar, nvarchar or varbinary...

Viewing 15 posts - 3,016 through 3,030 (of 3,348 total)