This is my little Replace-trick, just because I dont like the Replace(Replase(Replace(Replace string I've seen in a bunch of stored procedure and functions. First off all you should have a Codebase where you can insert all of your functions, mine is called Codesnippets but you can call i wathever you want.