Forum Replies Created

Viewing 15 posts - 2,071 through 2,085 (of 3,348 total)

  • RE: String Length

    paul.knibbs (7/11/2012)


    Slightly odd behaviour from nchar() there, I learned something...

    Hmmm, not sure why you this is strange behaviour for nchar. It is fixed length, so any shorter length string put...

  • RE: Restart Log Backups

    GilaMonster (7/9/2012)


    It's why I never write QotD any longer.

    And that is really a loss. I can understand yoour feelings. Sometimes, the comments are fair. Sometimes, they are far-fetched. And sometimes,...

  • RE: Views and changes

    GPO (7/5/2012)


    I wonder whether all SELECT * in views are created equal. That is to say equally evil. For example is a SELECT* from a preceding CTE just as...

  • RE: Index Types

    Steve Cullen (7/5/2012)


    Correct answers = 1 ???

    This must be one of those Monty Python type questions:

    Q: What is your name?

    A: Steve Cullen

    Q: What is your quest?

    A: I seek knowledge and...

  • RE: Views and changes

    Andrew Diniz (7/3/2012)


    On a serious note, where is a view's meta-data kept and under what circumstances might a view return inconsistent results as a result of base table schema changes?

    The...

  • RE: Views and changes

    It's a bit disappointing that nobody has yet commented that the "best" way to deal with the issue is to drop the view, then create a new one that does...

  • RE: Index defaults 2

    roger.plowman (6/28/2012)


    While I'm late to the party and missed answering yesterday 🙂 I knew foreign keys don't generate indexes, but my question is why the heck not?

    Maybe because they often...

  • RE: INTERSECT 1

    chriscoates (6/28/2012)


    To quote this question, and the article it refers to:

    INERSECT returns "those distinct values that are common between tables"

    I have never seen a situation where:

    SELECT DISTINCT a.x

    FROM a

    INNER...

  • RE: INTERSECT 1

    chriscoates (6/27/2012)


    Perhaps we are at cross purposes Hugo, I meant tht the result set is the same, regardless of uniqueness. Of course if the values are not unique then there's...

  • RE: Index defaults 2

    Sorry for my lack of replies. I am currently attending the TechEd Europe conference in Amsterdam, so I have very little time for other stuff.

    I don't have time to address...

  • RE: Index defaults 1

    subrammail (6/27/2012)


    If we are not mention any index for primary key , then Clustered index created for Primary key (by default). In this question, primary key created with out...

  • RE: NULLIF 1

    I know about NULLIF, so I should have gotten it right. But the presence of the (unused) column X in the table confused me; I kept checking answers as if...

  • RE: INTERSECT 1

    chriscoates (6/26/2012)


    Nice question, thanks.

    Prior to answering I would have done something like

    SELECT DISTINCT x AS 'Intersect Chars with BIGINT'

    FROM #A

    INNER JOIN #B on #b.M = #a.x

    A quick execution plan...

  • RE: Transactions 1

    dineshbabus (6/25/2012)


    Thanks Man.

    Can u tell me what will be default mode of "XACT_ABORT" in sql server. If i'm setting it as ON then how long it will be effective.

    The...

  • RE: Temp Tables

    Revenant (6/25/2012)


    Hugo Kornelis (6/25/2012)


    Neither table variables not temporary tables are created in memory only. And both are created in memory only. . . .

    Hugo, hat off.

    When we happen to be...

Viewing 15 posts - 2,071 through 2,085 (of 3,348 total)