Forum Replies Created

Viewing 15 posts - 196 through 210 (of 703 total)

  • RE: Talking baseball

    Bruce Jenkins, a BWA member and HOF voter, makes his case for eight guys (written just before this year's announcement, so Alomar and Blyleven are on his list).

    ...

  • RE: Number of weeks between two dates

    Rem70Rem (1/5/2011)

    Edited: Yesterday @ 10:38:18 AM by Rem70Rem


    Uh, what was the question? 😉

    Seriously, though, please restate the starting point so that others can learn from the discussion. That...

  • RE: smalldatetime

    I cannot recall ever using smalldatetime, and now this QOD gives me good reason to avoid it. A max value in year 2079 implies that anyone attempting to save...

  • RE: Swap columns

    Koen (da-zero) (12/30/2010)


    jts_2003 (12/30/2010)


    ...usually when something has gone wrong!;-)

    That's why I hope I will never need to use it 😉

    Although you may never have to simply swap the values of...

  • RE: Fun(?) with DATETIME2

    Now that we can store dates earlier than 1753, there should be no error storing them, but it seems that it will be up to an application using those dates...

  • RE: Calling Out Bad Advice

    OCTom (12/22/2010)


    My 2 cents worth:

    When correcting/criticising someone:

    1. Don't make it personal.

    2. Make it about the code and/or advice.

    3. Use positive instead of negative terms.

    4. Give an alternative and explain why...

  • RE: T-SQL

    cengland0 (12/16/2010)


    Carlo Romagnano (12/16/2010)


    cengland0 (12/16/2010)


    Carlo Romagnano (12/16/2010)


    the Mayan calendar shows the world will end on December 21, 2012 anyway.

    Mayan calendar BUG: 12/12/2012 is the end.

    :-D:-D:-D

    Actually, it's 12/21/2012

    It depends on "Regional...

  • RE: What is the result of the following query

    Since the error is due to the #tmp table no longer being in scope once the EXEC() is done, one could fix this to work by making the table global...

  • RE: Unique constraint on a nullable column

    UMG Developer (12/3/2010)


    Thanks to everyone for the discussion, I knew the WHERE clause wasn't a real work-around...

    I'm with UMG on this one. Besides the quibble that the WHERE clause...

  • RE: Sorting Months By Number (SQL Spackle)

    How much more efficient is the proposed solution ORDER BY CAST(DATENAME(mm,SomeDateTime) + ' 1900' AS DATETIME)than adding a numerical representation of the month, whether by using MONTH() or DATEPART(), to...

  • RE: Computed column

    Hugo Kornelis (11/9/2010)


    john.arnott (11/8/2010)


    Hmmm. When I run this code to build the table, "Select 1 from #test" returns two rows, each with a "1". It's an implied join,...

  • RE: Computed column

    SanjayAttray (11/8/2010)


    Create Table #Test (a int, b int, C as a+b )

    go

    insert into #test values (3,4)

    insert into #test values (1,7)

    go

    select * from #test

    order by 1

    go

    drop table #test

    go

    Isn't it funny...

  • RE: Predict the total count

    Bazzkar,

    With so many comments on your QOD, you really should be happy about it. Despite it perhaps causing some transitory embarrassment, you've engendered a lively discussion. Even though...

  • RE: Predict the total count

    Or, if your locality sets the date format as dd/mm/yyyy, then would not the 01/07/2010 row be saved as first of July? That would seem to still result in...

  • RE: What will the results be for the code below?

    The good thing is that I learned somethng here, and not about conversion precedence.

    I answered that the intial assignment would fail as the CONVERT function seemed wrong. The...

Viewing 15 posts - 196 through 210 (of 703 total)