Forum Replies Created

Viewing 15 posts - 31 through 45 (of 276 total)

  • Reply To: Date to record zero balance for an account version

    Props to Drew. Was hoping I had kicked ass on this one, but not quite. Damn.


    "If I had been drinking out of that toilet, I might have been killed." -Ace Ventura

  • Reply To: Option to use old forums?

    I'm feeling really heartbroken by the new site. This is one of the most sacred places on the Internet to me, and this feels like a significant loss. The new...


    "If I had been drinking out of that toilet, I might have been killed." -Ace Ventura

  • Reply To: Date to record zero balance for an account version

    GAWD the new formatting on this site is AWFUL. Can someone please change it back? It's practically unreadable. 🙁


    "If I had been drinking out of that toilet, I might have been killed." -Ace Ventura

  • Reply To: Date to record zero balance for an account version

    -- Drop target scratch table if it already exists:
    IF OBJECT_ID('tempdb..#OPCantBeBothered') IS NOT NULL
    DROP TABLE #OPCantBeBothered
    ;

    -- Create scratch table:
    CREATE TABLE #OPCantBeBothered
    (
    AccountNo INT,
    VersionNo INT,
    Amount INT,
    StatusDate DATE
    )
    ;

    INSERT...


    "If I had been drinking out of that toilet, I might have been killed." -Ace Ventura

  • RE: Building Better Stored Procedures

    Thanks, I didn't find that with a quick google search,...


    "If I had been drinking out of that toilet, I might have been killed." -Ace Ventura

  • RE: Building Better Stored Procedures

    Are you saying there is literally a "CREATE OR ALTER" feature? Or are you just using that name informally? The code examples you gave in the screenshot below appear to...


    "If I had been drinking out of that toilet, I might have been killed." -Ace Ventura

  • RE: Getting results from two table and do calculations

    I've never actually used the Time datatype before, which is what it looks like you are using for OrderLine.duration. Based on my testing, it seems like the following should work...


    "If I had been drinking out of that toilet, I might have been killed." -Ace Ventura

  • RE: WHERE Clause exclusions, best practices.

    Seems like it might be worth considering dumping the filtered data into its own tables as part of a daily process or something. And then querying those tables.


    "If I had been drinking out of that toilet, I might have been killed." -Ace Ventura

  • RE: Which index will perform better

    Jeff Moden - Tuesday, January 15, 2019 7:27 AM

    ...I also wouldn't do a direct delete.  Instead, I'd do a search for...


    "If I had been drinking out of that toilet, I might have been killed." -Ace Ventura

  • RE: adding each row incremental

    Not sure this is 100% relevant to your issue or not, but you might also want to check out SUM...
    https://docs.microsoft.com/en-us/sql/t-sql/functions/sum-transact-sql?view=sql-server-2017


    "If I had been drinking out of that toilet, I might have been killed." -Ace Ventura

  • RE: Sql injection

    Amen! Glad someone found a hack. I knew it was just a matter of time! 🙂 Now we just await the OP's coworkers' defensive and dismissive replies... lol


    "If I had been drinking out of that toilet, I might have been killed." -Ace Ventura

  • Viewing 15 posts - 31 through 45 (of 276 total)