Skip to content
Advertisement

TSQL – How to URL Encode

Looking for a bug free tested sql script that i could use in a UDF to encode a url through sql. Function would take in a URL and pass out a URL Encoded URL. I have seen a few, but all i have come across seem to have some flaws.

Advertisement

Answer

In order to use this script, you’ll want to use Numbers table.

The script is fully available on SQL Server Central (registration required)

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement