• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 661
  • Last Modified:

VB.net Prepare string with quotes to SQL

Hi

I need a function to convert any string that has quote markes in to a string that
can be used in a SQL statement
Thanks
0
Murray Brown
Asked:
Murray Brown
1 Solution
 
EYoungCommented:
Replace(string, "'","''")
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Many thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now