T-SQL functions to convert Strings to Tables
These were in a solution and I thought I'd note them on my site so I can refer to them more easily. How?
Knowledge base / Since 1999
Practical Transact-SQL tutorials, troubleshooting notes and implementation guides from real projects.
Advanced search22 entries / Transact-SQL
Clear filters
These were in a solution and I thought I'd note them on my site so I can refer to them more easily. How?
So this is an article exploring how to convert UPPERCASE text into mixed case. The feed is originally for a personnel feed so it won't be converting long paragraphs of English text. Instead it will be applied to names and addresses as well as job titles and departments.
This took me a while to find so I've posted an article below detailing how to parse or extract values from a string containing XML code.
A quick article on how to compare two Microsoft databases using the tools provided with SQL Server and without having to download any third-party products.
This is a quick article on how to split a single row into multipe rows based on the value of a column in the same table.
This is a quick article on how to use a counter added to the end of a field column of data. Eh. What? Assume the following two tables exist:
A very quick note in case I forget this one. If you are trying to join two tables and receiving the error "Conversion failed when converting the varchar value 'B110' to data type int" then read on. How?
This is a quick note on finding the last occurrence of a string in a longer string. This has to be in Transact SQL for a SQL Server instance only and not filtered by other code.
Along with my DataJumble function and DataTumble procedure which also help scramble database tables sent to suppliers/developers, this is a function which simply finds random characters and inserts these. I would recommend using the DataTumble script over this one as this leaves data very difficult to work with: Before...
Working principle
This site exists as a practical knowledge base built from real-world experience across systems, platforms, and technologies since 1999. Much of the content documents solutions, edge cases, and working patterns that were learned through investigation where documentation was incomplete or absent, and is shared to reduce the same friction for others.
Protected notes
Log in for protected notes and any private client projects assigned to your account.