|
|
Question : How do you escape ' in vb.net? I want to insert into an sqlserver 2005 table.
|
|
How do you escape ' in vb.net? I want to insert into an sqlserver 2005 table.
|
Answer : How do you escape ' in vb.net? I want to insert into an sqlserver 2005 table.
|
|
if you used a SqlCommand with SqlParameters, you don't need to do anything about the quotes. you should do it, although it looks like more coding, it will ensure you write correct/proper/efficient code
here a sample: http://www.codeproject.com/useritems/CodeGeneration.asp
note: it does not need to be a stored procedure that you call to use a parametrized query.
a nice helper unit: http://www.developerfusion.co.uk/show/5445/
|
|
|
|