SQL string escaping

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I am using sql string to insert, update and delete from a database. Often I run into the problem where  a value to be inserted into the sql containt a , " or some other character that disrupts my sql string.  Is there an sql escape function in c#?  Is there an unescape function also?

How do other developers normally handle this problem?

Thanks

Ackim


View the full article
 
Back
Top