Forum Replies Created

Viewing 15 posts - 1,741 through 1,755 (of 3,348 total)

  • RE: INTO Identities

    Mike Dougherty-384281 (5/13/2013)


    Why should identity column promotion ever happen?

    Ok, I understand that creating a table on-the-fly with an identity column might be pretty useful for further query against its clustered...

  • RE: Row Constructor

    marlon.seton (5/13/2013)


    kapil_kk (4/17/2013)


    New thing to learn... 🙂

    Whilst I agree, I wonder if anyone has ever used this idea in a real piece of coding? The values are hard-coded and...

  • RE: Data Type

    Dave62 (5/10/2013)


    Not quite the expected length of 3?

    Try using c.max_length instead of t.max_length.

    The column t.max_length is the maximum for the type (varchar); c.max_length is the maximum for this specific column.

  • RE: Data Type

    Danny Ocean (5/10/2013)


    Good question, but Explanation is not completed or require more details.

    I think hugo can help us.

    Unfortunately, I can't. This is not consistent at all. In many other cases,...

  • RE: The Subquery

    paul.knibbs (5/9/2013)


    Hugo Kornelis (5/9/2013)

    Actually, it does make more sense than you may think. It is the result of a combination of features that, in and of themselves, are rather innocent.

    Thanks...

  • RE: The Subquery

    nenad-zivkovic (5/9/2013)


    Since nothing from subquery's table is actually selected here - it can very well be omitted. Any of these would be exactly the same:

    select * from address_oltp where...

  • RE: The Subquery

    paul.knibbs (5/9/2013)


    Have to admit, I'm puzzled by this behaviour. It doesn't make logical sense for SQL to make a substitution like this when the table you're selecting from is explicitly...

  • RE: The Subquery

    Client_id vs Clientid - I am glad I noticed this in the last minute.

    The question pretends to be about subqueries, but I am pretty sure that the 38% people that...

  • RE: Nested triggers 2

    Mighty (5/8/2013)


    It also might be because it is still early here, but what is the point exactly?

    The view definition is such that...

    . What is it exactly why it works? The...

  • RE: Timestamps

    binod.soft (5/8/2013)


    statement #7 runs succesfully and returns 0 rows

    Not if you execute the entire code block as a single batch (as instructed in the question). The error in statement #6...

  • RE: Distinct

    Thanks! Good question.

    In addition to the explanation given: the restriction actually makes sense. Remember that, logically, the ORDER BY is performed *after* the SELECT. In the official ANSI standard, columns...

  • RE: Timestamps

    SQLRNNR (5/6/2013)


    On the topic of people offering thanks for the question etc etc etc. Since I like to do it, I will confess to the reason behind it. ...

  • RE: Timestamps

    wolfkillj (5/6/2013)


    Good question - I appreciate the QotDs that demonstrate quirky behavior.

    It bears mention that Microsoft has slated the "timestamp" syntax for deprecation in favor of "rowversion" as of...

  • RE: Timestamps

    demonfox (5/6/2013)


    What do you mean ?? posting in the Qotd forum doesn't give any points .. it's only when you reply in the blog forums ..

    If that is the case,...

  • RE: Timestamps

    demonfox (5/6/2013)


    I don't see any problem in banal comments , such as "Thanks for the question" , "nice question" ; I think it encourages the author; whereas my post was...

Viewing 15 posts - 1,741 through 1,755 (of 3,348 total)