Using Apostrophe () in data

  • I would like to pass in data that contains Apostrophe (') characters to execute a Stored Procedure.  An example that I want to pass the data O'Brien to a stored procedure (ex. execute LOOKUP 'MR_MEMBER' 'O'Brien').  Any ideas how to get around this?

  • You can replace the apostrophe with two apostrophes in the front end, but the better solution is to use a parameterized command object. 



    --Jonathan

  • You could use something like this:

    execute LOOKUP 'MR_MEMBER' 'O' + char(39) + 'Brien'

     

    Just a thought.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply