To add, @dextercowley said that there is no reason to have this code for specific database types - its either needed for all of them, or it's needed for none of them. This is not something special SQL Server needs. Trust me, I've worked with it for years.