title: TSQL - How to URL Encode
body: <p>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.</p>