Forum Replies Created

Viewing 15 posts - 3,586 through 3,600 (of 4,080 total)

  • RE: Building table dynamically fails

    Could we see the fully generated string please? Preferably, one generated with a print statement right before statement 99 where the error occurs.

    However, I'm pretty sure Florian's right....

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: How generate Dates on the fly

    Corrected version. Still runs in a millisecond or less.

    ;WITH

    L0 AS (SELECT 1 AS C UNION ALL SELECT 1),--2 rows

    L1 AS (SELECT 1 AS C FROM L0 AS A,...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: How generate Dates on the fly

    My bad.

    I skimmed over the part that said nothing could be created in the DB. I was trying to poke fun at Jeff because he...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Select distinct on multiple columns

    Thanks for the reply. It's always good to know what the resolution was. I sent you that last example because I believe it will work...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: How generate Dates on the fly

    JEFF !!!! You don't have a tally table available?

    select dateadd(yy,datediff(yy,0,getdate())-5,0)+ N-1

    from dbo.tally

    where N < datediff(dd,dateadd(yy,datediff(yy,0,getdate())-5,0),getdate())+2

    Runs almost a full millisecond faster at 5-10 years. 😉

    Pretty much a...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: XML Help for SQL Server 2005

    (1) We can't see your list of tags... please post them as an attachment.

    (2) I'm not sure why you feel the need to store the tags. ...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Select distinct on multiple columns

    I guess SOMETHING did.

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Are the posted questions getting worse?

    Deleting your posts strikes me as the equivalent of the people who disconnect from losing positions in online chess games. It's the equivalent of kicking over the...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Are the posted questions getting worse?

    Great minds think alike. I'm just happy that I'm not the only person on earth who might remember that song. 😀

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Are the posted questions getting worse?

    ARTIST: Tom Lehrer

    TITLE: Lobachevsky

    Lyrics

    Who made me the genius I am today

    The mathematician that others all quote

    Who's the professor that made me that way

    The greatest that ever got chalk on his...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Are the posted questions getting worse?

    try to order the list of values so that the most frequently found values are placed first

    Grant, I've read somewhere a while back that this is actually...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Are the posted questions getting worse?

    I'm glad you said that, Gail. I did a single test on that a while back because I figured the internal logic had to be the same, but...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Are the posted questions getting worse?

    Having spent my lunch hour perusing his blogsite, it's very tempting to do a parody of it, but we've already spent more time unloading on him than he's worth. ...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Are the posted questions getting worse?

    Some other priceless pearls from the "Mangled" SQL Blog....

    5. Avoid using SELECT * FROM when only a few columns are needed. Try to specify each column.

    How about avoiding using SELECT...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Are the posted questions getting worse?

    You have to admire the courage of his convictions... Deleting his own posts so that people won't throw his own words back at him?

    Perhaps someone should...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

Viewing 15 posts - 3,586 through 3,600 (of 4,080 total)