Tag Archives: T-SQL

  1. Padding a string in SQL Server

    1

    July 15, 2021 by Kenneth Fisher

    I’ve been working on converting a piece of DB2 code into T-SQL and one of the functions I had to …
    Continue reading

  2. CROSS vs OUTER APPLY

    2

    June 10, 2021 by Kenneth Fisher

    I love CROSS APPLY. I also love OUTER APPLY. What’s the difference though? The same difference as with an INNER …
    Continue reading

  3. Creating a configurable SSMS script

    1

    May 18, 2021 by Kenneth Fisher

    Several times over the last few weeks I’ve gotten a request to create a new work database. The individuals from …
    Continue reading

  4. All jobs that ran during a given time frame.

    Leave a comment

    May 6, 2021 by Kenneth Fisher

    Short post today. Simple query that will tell you every job that ran between two datetime stamps. Note: this of …
    Continue reading

  5. SQL Homework – December 2020 – Participate in the Advent of Code.

    Leave a comment

    December 3, 2020 by Kenneth Fisher

    Christmas. Depending on where you live it’s a big deal even if you aren’t Christian. It pervades almost every aspect …
    Continue reading

  6. HAL0004 – I don’t feel well Dave

    Leave a comment

    June 29, 2020 by Kenneth Fisher

    It’s another HAL! Every once in a while (4 times now) I come up with a terrible terrible idea for …
    Continue reading

  7. End an ALTER DATABASE immediately if anyone is in the database.

    5

    June 11, 2020 by Kenneth Fisher

    The development team has told me they’ve shut down the application, there are no more connections and I can go …
    Continue reading

  8. Use session_context to create a “variable” that lasts between batches.

    11

    May 26, 2020 by Kenneth Fisher

    The other day I had a brief conversation with Itzik Ben-Gan (about|twitter) on twitter and I have to tell you …
    Continue reading

  9. Negative (-) is an operator and will affect the order of operations.

    7

    May 18, 2020 by Kenneth Fisher

    An interesting question came to my attention the other day. A strange operation problem in SQL Server: -100/-100*10 = 0 …
    Continue reading

  10. Explain CROSS APPLY like I’m 5.

    5

    May 11, 2020 by Kenneth Fisher

    A good friend of mine (Randolph West (blog|twitter) asked that someone Explain CROSS APPLY like they are 5. So, here’s …
    Continue reading

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 3,548 other followers

Follow me on Twitter

ToadWorld Pro of the Month November 2013