Cody Konior's Avatar

Cody Konior

@codykonior

Expert at scaling SQL Server and PowerShell. Happily married with 4 cat children 😻

132
Followers
301
Following
203
Posts
22.06.2023
Joined
Posts Following

Latest posts by Cody Konior @codykonior

Video thumbnail

#sqlcatfamily

05.12.2025 13:58 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

πŸ‘‹

18.11.2025 12:09 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Twitter is down. Hi again 🀣

18.11.2025 12:08 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

@markwitton.bsky.social Hi can I ask about King Tyrant. Is there anything in there about Nanotyrannus?

Thanks.

08.11.2025 12:45 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

@illleavenow.bsky.social

23.09.2025 04:55 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

@illleavenow.bsky.social

20.08.2025 03:56 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

It’s sad that Azure SQL Database resource locks are completely bypassed by a T-SQL DROP DATABASE.

15.07.2025 13:13 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

@illleavenow.bsky.social

15.07.2025 13:12 πŸ‘ 3 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Just saying because it’s yet another adult thing that seems super simple on the surface but has depths of craziness that normal people shouldn’t have to know about πŸ’€

08.07.2025 07:24 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Side thing but I’m on the mailing list of a local arborist and he sent a long article a week ago about this.

How there’s all kinds of rules over who pays based on whether the tree is native, and power companies don’t follow their own rules, and he has to answer angry confused calls all the time.

08.07.2025 07:23 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

People do that??

08.07.2025 07:21 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

@bielleogy.bsky.social

07.07.2025 02:00 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image
28.06.2025 14:39 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

It’s a bit of an old programmers joke but I do actually spend a lot of the day waiting for things to compile or deploy these days πŸ˜…

24.06.2025 05:04 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

If a logging process goes crazy and starts spinning up sessions dumping into a table, you could disable the user temporarily waiting for the other side to die, or add an instead of insert trigger for a little while that just does a return πŸ˜›

16.06.2025 02:15 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

TIL if you have an empty folder you want to keep in git (so you don’t need to test and recreate it in every script that touches it) the convention is to use an empty .gitkeep file in there.

26.05.2025 04:15 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

These are procedures like utility procedures, Hallengren stuff, etc that isn’t part of your project but that does get put into each database usually by a seperate process.

24.05.2025 11:56 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

The other cool thing I found was; have procedures outside your project but that you don’t want dropped? You can just extract them into a dacpac and reference it. Now it won’t drop them on deploy anymore.

And yeah you can β€œturn off all drops” but often that’s not what you want.

24.05.2025 11:55 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

I had resorted to doing all users in a post-script in SSDT but it turns out you can add a publish flag that lets you create the users but not deploy the fake logins you define for them.

That stuff is important when you want to drop all users not defined in your project.

24.05.2025 11:54 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Specifically last week you could OPENJSON a JSON variable. Now you can’t.

There’s a limitation listed in the documentation that you can convert to NVARCHAR first. But this was working functionality that has been changed overnight.

That’s what you get for using Preview features I guess πŸ€·β€β™‚οΈ

20.05.2025 02:47 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

If you’re using the JSON data type in Azure SQL Database they pushed a change for GA which has broken it.

Good luck.

20.05.2025 02:42 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

If you open SQL Prompt and the dropdown menu only has 3 items on it (about, check version, something else), it means it has lost its license information.

Don’t bother messing with the folders or reinstalling. Click the about and it’ll log you back in to authenticate πŸ€¦β€β™‚οΈ

Shame it doesn’t tell you!

19.05.2025 02:25 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Yeah but this year they’re making it even thinner!!! 😏 /s

11.05.2025 12:33 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Some are just born with that rizz #sqlcatfamily

11.05.2025 12:31 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Unfortunately though I have no avenue to support tickets in my current company.

Sucks to be me.

06.05.2025 16:36 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

I think I found a weird optimiser error in Azure SQL Database.

You can do a SUBSTRING CHARINDEX CHARINDEX with valid values and it’ll barf with a length error even though it’s 100% valid.

If you add a WHERE clause with that CHARINDEX > 0 to act as a filter, it works even though it’s not NULL/0/-.

06.05.2025 16:35 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Small reminder that changing elastic pools on an azure sql database is fine but can kill any active connections so like maybe don’t do it when that’s important.

06.05.2025 06:40 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image
30.04.2025 05:50 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

* doesn’t work reliably, sometimes it does work, which is why it’s an extra piece of shit and misleading

30.04.2025 05:40 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Be careful trusting Set-AzSqlServer to enable or disable identity types of SystemAssigned/None.

Shit doesn’t work. Only the portal works. What a fucking piece of shit. No error or anything either.

30.04.2025 05:40 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0