Forum Replies Created

Viewing 15 posts - 2,971 through 2,985 (of 3,348 total)

  • RE: Varchar or Char?

    diamondgm (10/16/2009)


    diamondgm (10/16/2009)


    Firstly, we assume that the average is the result of an even spread (that the average length is in fact 8.5 - we only need an average of...

  • RE: Varchar or Char?

    david.howell (10/16/2009)


    nVarchar can actually use more than 2 bytes for some characters e.g. chinese characters that use 3 bytes.

    Do you have a source for that? Both Books Online and every...

  • RE: Varchar or Char?

    This was a great question. Well done, John! I hope you have more of these in store for us.

    diamondgm (10/16/2009)


    Firstly, we assume that the average is the result of an...

  • RE: IN Operator

    Toreador (10/2/2009)


    Hugo Kornelis (10/2/2009)


    A very unusual pattern, as LIKE is intended to be used with wildcard characters, but syntactically valid.

    We use it widely, where searches which can be either on...

  • RE: IN Operator

    Bhavesh-1094084 (10/2/2009)


    Toreador (10/2/2009)


    Hugo Kornelis (10/2/2009)


    That standard dictates that when strings of unequal length are compared, the shorter string is first padded with spaces until it matches the length of the...

  • RE: IN Operator

    Toreador (10/2/2009)


    Hugo Kornelis (10/2/2009)


    That standard dictates that when strings of unequal length are compared, the shorter string is first padded with spaces until it matches the length of the longer...

  • RE: IN Operator

    john.arnott (10/1/2009)


    But I would like to to know where MS documents the way two strings are compared as equal even when their length differs (due to the defined length or...

  • RE: T-SQL 2008

    Mighty (10/1/2009)


    I'm of the opinion that the answer(s) are incorrect.

    CUBE and ROLLUP where already available in SQL Server 2005, so they were not introduced with SQL Server 2008.

    SQL Server 2005...

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    DavidL (9/25/2009)


    And no - there is no reason to use ORDER BY every time you use the tally table. There is reason to use ORDER BY every time you expect...

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    DavidL (9/25/2009)


    In principle, there is no reason for large tally tables to work. If you change your query as I suggested, SQL Server can weed out the high numbers before...

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    DavidL (9/25/2009)


    Hi guys: Thanks for hanging in there through all my bumbling. I'm not a sql server pro, and as a result find myself in over my head...

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    Hi David,

    Based on visual inspection of your code, I fail to see any way that this code could cause "gaps" in the tally table. I think what you saw was...

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    DavidL (9/24/2009)


    It looks to me that the tally table isn't storing the values I inserted in ascending order (or at least it is not returning them in that order).

    No surprise...

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    DavidL (9/24/2009)


    Additionally, cutting and pasting your last example into my ssms and running it as is

    --===== Presets

    DECLARE @DateStart DATETIME

    DECLARE @DateEnd DATETIME

    SELECT @DateStart = '2008-01-01 06:00',

    ...

  • RE: auto creation of statistics

    Bummer, missed a point because I overthought the question, figuring something so simple had to be a trick question.

    I know of the AUTO_CREATE_STATISTICS settings. But this setting only affects creation...

Viewing 15 posts - 2,971 through 2,985 (of 3,348 total)