views:

115

answers:

2

Hello Everyone, 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.

Thanks in advance, Billy

A: 

How about this one: http://sqlblog.com/blogs/peter_debetta/archive/2007/03/09/t-sql-urlencode.aspx

Abe Miessler
That was the first one i came to. If you look at the comments below it there were a bunch of different changes and it seemed as though they were just piecing it together as the thread continued. Have you personally had success with this method?
Billy Logan
A: 

Went with this answer.

http://www.sqlservercentral.com/scripts/URL/62679/

Tried the above link with no luck.

Billy Logan