Forum Replies Created

Viewing 15 posts - 3,796 through 3,810 (of 4,080 total)

  • RE: Programatically access newsequentialid()

    Hey Gaby, I'm still curious. Why would you want a uniqueidentifier for a row to ever be null, even if it isn't the primary key? ...

    __________________________________________________

    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

    Sorry, no weekends allowed in the table. Just holidays.

    Michael, I'll be happy to do that for the test with your function.

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

    Clifford, why don't you start a new thread under one of the T-SQL forums for your question? It will get answered quickly. Use a subject line about...

    __________________________________________________

    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

    I challenge anyone to a benchmark:

    1. a million rows of StartDate, BusinessDays, EndDate

    2. update thistable set EndDate=YourFunction(StartDate,BusinessDays)

    3. a table of holidays consisting of a single column Holiday containing the American...

    __________________________________________________

    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

    I'm in complete agreement that there are a myriad of ways to accomplish this task.

    Hey J, whose post are you responding to? I'm assuming it was mine. ...

    __________________________________________________

    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

    It can be done without a computer, for that matter...

    True enough, j, but then we wouldn't have jobs !! :w00t:

    Seriously, the reason people make such 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: SQL Function : Find ‘X’ Business Days in the Future

    We also use the tally table/holiday table approach instead of a loop. It is blindingly fast.

    We prepopulate the holiday table with weekends as well as holidays, like this,...

    __________________________________________________

    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 keep trying to tell y'all that a whizbang fibre-optic laser beam DISassembler is preferable. Like the lightsabre it's an elegant weapon... not as clumsy or random as...

    __________________________________________________

    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: Return only one record

    According to the online help for the OVER clause:

    PARTITION BY

    Divides the result set into partitions. The window function is applied to each partition separately and computation restarts for each...

    __________________________________________________

    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: Programatically access newsequentialid()

    It works like a charm. But may I ask why you are concerned that a guid be sequential? I ask because when there is a need to...

    __________________________________________________

    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 add multiple Dates Columns together but adding only date without times

    Hey Joseph,

    The answer to your question follows, but a little discussion is in order. Please take a moment to look at how I set up 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: Celebration

    Congratulations on your millionth member! This site DESERVES the membership growth. I have never seen a forum bring together such expertise, professionalism, and just plain...

    __________________________________________________

    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?

    Maybe the machines have already gone further back in time and caused the implementation of CURSORS... or given someone the idea that relational database tables can and should resemble objects.

    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?

    What are the odds of this thread evolving into SkyNet? I have children and I am worried about their future.

    __________________________________________________

    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?

    Ninja: That would be some seriously twisted googling at this point 😉

    __________________________________________________

    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,796 through 3,810 (of 4,080 total)