F
Fred Flintstone
I'm writing an app in VB.Net that talks to MS SQL Server 2000. The
problem is that when someone enters a single quote into a field, I get
SQL errors. I've looked this up and its recommended that you double up
the quotes. So if someone enters:
O'Brien
I should be sending "O''Brien"
Know what happens what I do that? I get "O''Brien" in the table. So I
figured, maybe it's an escape thing so I tried this:
"O\'Brien"
And in the table I get "O\'Brien". If I use one single quote I get an
error.
How do I get this to work?
Thanks!
problem is that when someone enters a single quote into a field, I get
SQL errors. I've looked this up and its recommended that you double up
the quotes. So if someone enters:
O'Brien
I should be sending "O''Brien"
Know what happens what I do that? I get "O''Brien" in the table. So I
figured, maybe it's an escape thing so I tried this:
"O\'Brien"
And in the table I get "O\'Brien". If I use one single quote I get an
error.
How do I get this to work?
Thanks!