Is there any query which is use to find the case sensitivity in each records in database through visual basic?

Showing Answers 1 - 1 of 1 Answers

samiksc

  • Jan 19th, 2006
 

For case sensitive string comparison in SQL one has to use substring() and ascii() functions in the following way.

  1. Get first character of both strings using substring function as substring(str1, 1, 1)
  2. Find ascii value of both characters and compare.
  3. Put statements 1 and 2 in loop to advance to next character

For example if (ascii(substring(str1, @pos, 1)) = ascii(substring(str2, @pos, 1)) then @pos = @pos + 1 ....

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions