Why yes? With this script it’s easy as ABC. Just fill in the list of items you want scripted and off you go. This way you can script any stored procedure, view, function or anything else that resides in the sys.sql_modules table. There is a small piece of code that will loop through the definition […]
Author: Kristof
Do you know how to check a phone number?
Of course I do! Here’s a little nifty function you can use or expand for your own needs. This was made for Dutch mobile phone numbers but can be easily tweaked for any other type of phone number. The way this works is as follows. First we split the string into a table of single […]
How can I use JSON in T-SQL to maintain configurations
Do you know how I can easily perform an 11-test (Elfproef)
The elfproef is a Dutch validation check that was used for bank account numbers before the introduction of IBAN and is still used for BSN (National identifier) and payment references in bank transaction. Here’s a sweet inline table valued function that will yield instant results. 1 million iterations of this take up almost no cpu […]
Do you know how to fix error 502 or 504 when saving a game in Baldur’s Gate 3?
Actually, I do. You have too many save games and you need to delete a few. But, there’s no delete option I hear you say? Simply select a save game and hit “delete” on the keyboard. It will ask you if you are sure (of course you are) and then you can save again. Woohoo! […]
I need a script that will search all objects in a database for text or a combination of keywords
Oh, and I need a way to present it to my boss in an easy-to-use-excel-format. Well, this code will search all your databases for the text combinations you provide and return the views that contain the keywords. You can easily modify this to include stored procedures or functions and you can extend the search combinations […]
Do you know how to fix the NFC and wireless charging not working on my Google Pixel4?
Recently, the wireless charging on my Google Pixel4 stopped working. I blamed the wireless charging pad but it wasn’t until I travelled back to Europe and wanted to use my wireless payments that I noticed the NFC was also not working. It now turns out it’s due to the back of the phone being slightly […]
I need a dashboard for my SQL Agent JOBS that run SSIS Packages
I hear you. Here is a script in T-SQL that will fetch all the jobs (including the ones that are currently running) and displays a dashboard for each step. It will also display the last message SSIS generated (last error message in case of failure, or last message in case of a successful run).
How do I solve “illegal characters in path” in my Octopus deploy?
You won’t believe this, but the reason why I got this was a weird trailing backslash. I failed to find where it came from and after HOURS of searching, I found out it was because I had entered a variable in the process step and accidentally type ENTER before the variable. So it was essentially […]
I need a way to view the results of my SSIS packages (as a recordset)
This code was written while we were migrating a bunch of SSIS packages to a new SQL Server version. It will show you the latest results for each package run. If a package ended in an error state, it will show the latest error that was generated. You can toggle the code to show only […]