A
angus
Dear All,
Are there any method provided in .net framework(ado.net) that can escape
single quote in MS SQL.
For example
If i want to update the field in myTable in MS SQL to a string, like,
o'clock
i have to convert the o'clock to o''clock
therefore the insert statement is as follow:
Dim value As String = "o'clock"
sqlStatement = "update myTable set (field) values (" &
escapequotefunction(value) & ")"
..............
is there any similar method in .net that implemented escapequotefunction()
?
Regards,
Angus
Are there any method provided in .net framework(ado.net) that can escape
single quote in MS SQL.
For example
If i want to update the field in myTable in MS SQL to a string, like,
o'clock
i have to convert the o'clock to o''clock
therefore the insert statement is as follow:
Dim value As String = "o'clock"
sqlStatement = "update myTable set (field) values (" &
escapequotefunction(value) & ")"
..............
is there any similar method in .net that implemented escapequotefunction()
?
Regards,
Angus