Forum Replies Created

Viewing 15 posts - 2,911 through 2,925 (of 4,080 total)

  • RE: Are the posted questions getting worse?

    Give a man a fish and he'll eat for one day...

    Slap him around with a trout, and he may go away and leave you alone.

    Wait around long...

    __________________________________________________

    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 to query a one-to-many and only return 1 row on many side

    Cross Apply or Outer Apply will work.

    -- Whups, just realized Mark already submitted this solution.

    __________________________________________________

    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: Find next value , using CTES ?

    update table2

    set maxID = (select max(ID)+1 from table1)

    --

    Are you intending to put this in a trigger or what? That seems like a lot...

    __________________________________________________

    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: Finding Records with ALL of Several Pieces of Criteria

    You're welcome, blake. Good luck to you.

    __________________________________________________

    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 know, I guess it is really hard to teach someone fish when you are in the middle of the desert...

    Somewhere that man is getting well paid for the use...

    __________________________________________________

    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: SQL Function : Find ‘X’ Business Days in the Future

    GETDATE() is a function. You have to include the parens after it.

    [dbo].fn_AddBizDays(GETDATE(), 1)

    Be advised that GETDATE includes the current time as well as date, unless fn_AddBizDays strips it...

    __________________________________________________

    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: IDENTITY seed/increment not resetting after transaction rollbacks

    Understood.

    Just make sure you're covered when they finally notice that they can't depend on the sequence. 😉

    One other thought. In 2005 and...

    __________________________________________________

    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?

    This is actually a "recommended practice" at my current employer

    Gus, I have such mixed emotions on reading that....

    On the one hand I sympathize and empathize. ...

    __________________________________________________

    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: IDENTITY seed/increment not resetting after transaction rollbacks

    Consider what is supposed to happen if you have concurrent transactions going on.

    1. Transaction A inserts, which produces identity value 100.

    2. Transaction B inserts, which produces...

    __________________________________________________

    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?

    Welcome back, Roy. It's good to see you again.

    Paul, a few of the articles out there may be weak, but sometimes the discussion posts turn out to be...

    __________________________________________________

    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: Finding Records with ALL of Several Pieces of Criteria

    Sorry to leave this hanging so long. 🙂

    I went the same route as Andrew, adding a @model table variable to go with @skl_skill to control 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: Executing Table-Valued UDF with Paramater Names Specified

    Send me the link you have for that in BOL, please.

    I took a quick look and found that you can use this format when you EXEC a UDF.

    Don't know if...

    __________________________________________________

    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: Detect duplicate rows - with a twist

    "Thank you"s are indeed payment. I stand corrected.

    You are welcome, Scott. We'll look forward to hearing from you.

    __________________________________________________

    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: Finding Records with ALL of Several Pieces of Criteria

    Thanks 🙂

    Loading it up, now.

    __________________________________________________

    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: Executing Table-Valued UDF with Paramater Names Specified

    I can't find it in BOL, but I think you're SOL. 😉

    Best you can do is this, and it still means keeping the positions of 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

Viewing 15 posts - 2,911 through 2,925 (of 4,080 total)