Forum Replies Created

Viewing 15 posts - 751 through 765 (of 1,191 total)

  • RE: What identity comes next?

    I had some trouble understanding the explanation of the correct answer at first. The explanation for the answer states, "SQL Server will use the maximum identity value + increment in...

    -------------------
    A SQL query walks into a bar and sees two tables. He walks up to them and asks, "Can I join you?"
    Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html

  • RE: SQL syntax

    Paul White NZ (5/29/2010)


    Nice (but quite shocking!) question. I'm not at all embarrassed to say I got this one wrong.

    Yes, Paul, thanks. I too got it wrong and...

    -------------------
    A SQL query walks into a bar and sees two tables. He walks up to them and asks, "Can I join you?"
    Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html

  • RE: DDL trigger

    vk-kirov (5/27/2010)


    webrunner (5/27/2010)


    The invalid object error is in there, but the SELECT statements agree with the SELECT statement results presented in the QOTD correct answer. What statement does the invalid...

    -------------------
    A SQL query walks into a bar and sees two tables. He walks up to them and asks, "Can I join you?"
    Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html

  • RE: DDL trigger

    Hugo Kornelis (5/27/2010)


    da-zero (5/27/2010)


    I do not fully understand.

    The batch begins with:

    SET IMPLICIT_TRANSACTIONS OFF

    According to BOL, this means the following:

    ... SET IMPLICIT_TRANSACTIONS OFF statement, which returns the connection to autocommit mode....

    -------------------
    A SQL query walks into a bar and sees two tables. He walks up to them and asks, "Can I join you?"
    Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html

  • RE: What will this return?

    bkubicek (5/24/2010)


    Webrunner,

    select @startDt = getdate()

    select @startDt =

    dateadd(millisecond,0-datepart(millisecond,@startDt),

    dateadd(second,0-datepart(second,@startDt),

    dateadd(minute, 30-datepart(minute,@startDt),

    dateadd(hour,10-datepart(hour,@startDt),

    @startDt))))

    So the idea is that you can start with any date time and set it to a specific time.

    If you want the...

    -------------------
    A SQL query walks into a bar and sees two tables. He walks up to them and asks, "Can I join you?"
    Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html

  • RE: What will this return?

    Got it right through pure guessing. Perhaps that means, as others have noted, that it was not the best question as far as teaching/learning, due to the complexity of the...

    -------------------
    A SQL query walks into a bar and sees two tables. He walks up to them and asks, "Can I join you?"
    Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html

  • RE: More, More, More

    I'd like to second the suggestion to email the whole comment for forum notifications, and also the digest option (daily or weekly or both). As an option, no one would...

    -------------------
    A SQL query walks into a bar and sees two tables. He walks up to them and asks, "Can I join you?"
    Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html

  • RE: Careful with table name alias

    Aside from the minor case correction of 'Careful with' that several astute observers noticed, this is a great question. It's even possible it will help in diagnosing something crazy like...

    -------------------
    A SQL query walks into a bar and sees two tables. He walks up to them and asks, "Can I join you?"
    Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html

  • RE: More, More, More

    Here are my thoughts on what I'd like to see on SQL Server Central:

    1. I agree with a previous post that a "definitive article" section would be great. Or anything...

    -------------------
    A SQL query walks into a bar and sees two tables. He walks up to them and asks, "Can I join you?"
    Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html

  • RE: How many of you are not true DBA's?

    Steve Cullen (4/8/2010)


    My job title is DBA. I've never met anyone who's title was "True DBA".

    Converting oxygen into carbon dioxide, since 1955.

    First, I love your tag line.

    Second, I am...

    -------------------
    A SQL query walks into a bar and sees two tables. He walks up to them and asks, "Can I join you?"
    Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html

  • RE: Clustered indexes

    This is the most difficult question I've seen to date, and I've been on SSC a few years now. It's an excellent compilation of information, though, and I will use...

    -------------------
    A SQL query walks into a bar and sees two tables. He walks up to them and asks, "Can I join you?"
    Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html

  • RE: A round number

    Interesting question, and fascinating discussion. At this point, I'm not sure what the final correct explanation will be.

    If it turns out that the error is only in some clients, does...

    -------------------
    A SQL query walks into a bar and sees two tables. He walks up to them and asks, "Can I join you?"
    Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html

  • RE: Play with NULLIF

    Great question. I learned that I should read more carefully. This question was about NULLIF (which I had never learned), not ISNULL! :blush:

    Thanks,

    webrunner

    -------------------
    A SQL query walks into a bar and sees two tables. He walks up to them and asks, "Can I join you?"
    Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html

  • RE: Concrete Code

    Minor spelling quibble. I believe the spelling is "shear forces," not "sheer forces."

    Thanks for the editorial, though - it really got me thinking again about the construction metaphor for software...

    -------------------
    A SQL query walks into a bar and sees two tables. He walks up to them and asks, "Can I join you?"
    Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html

  • RE: Date data type

    Great question. I think the answer choices were suitably plausible, so it made it hard for me to guess. I happened to guess right. 🙂 Seriously, though, this is good...

    -------------------
    A SQL query walks into a bar and sees two tables. He walks up to them and asks, "Can I join you?"
    Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html

Viewing 15 posts - 751 through 765 (of 1,191 total)