I am not sure what do you mean by sanitisation? However if you are talking about running queries from C# code then you should look at parametrized queries. Then you would not need to handle any special characters at all.
Use [code]your code here[/code] tags when you post source code
Search here before you post your question, someone might have already asked it before. My Articles
As i said in my earlier post, you should not be worried about escaping the special characters. If you do it in a right way and use Parametrized Queries then you will never have to worry about the special characters. Just take a look at how SQLCommand, ODBCCommand or OleDBCommand samples work on msdn.
Use [code]your code here[/code] tags when you post source code
Search here before you post your question, someone might have already asked it before. My Articles
Red, it's still not clear why you need to do this.
Generally you need to escape when writing string literals into your code, but otherwise you just pass the data through.
For example, consider receiving the following string from the db:
What's happening?
Certainly you wouldn't want to escape that; otherwise it would end up as:
What\'s happening?
That being said, can you provide a specific example of the string coming from the database and how you would like it to appear (i.e. before and after)?
Bookmarks