Just use prepared statements, what someone else called parameterized queries. They are more flexible and not prone to sql injections.
'murang''a' ?
Jangita | +254 76 918383 | MSN & Y!: jangita@yahoo.com
Skype: jangita | GTalk: jangita.nyagudi@gmail.com
From: skunkworks-bounces@lists.my.co.ke
[mailto:skunkworks-bounces@lists.my.co.ke] On Behalf Of Calvin Omari
Sent: 20 September 2010 10:03 AM
To: Skunkworks Forum
Subject: [Skunkworks] Apostrophe string in mssql
Hi Techies,
How do we insert words like
'Murang'a' in mssql as it will be seen as an unclosed quote
Regards
--
Our greatest fear is not that we are inadequate,
but that we are powerful beyond measure.
It is our light, not our darkness, that frightens us.
Calvin Omari Systems Developer/Designer
http://www.facebook.com/barongo
_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1fbjAwOUE&hl=en
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke