Hello. First of all, I want to say that I am a beginner in Sybase. When that said:
In Visual Basic, I query an Adaptive Server Anywhere database with something like this:
The query gives the following result (note the foreign characters, in this case swedish characters):
id description
--------------
1 TestÅ123
2 TestÖ123
So far, that is the correct result. However, this query does not result in any rows at all:
Code:
SELECT * FROM foo WHERE description = 'TestÅ123'
That is not correct. Selecting with a LIKE clause gives the correct result:
Code:
SELECT * FROM foo WHERE description LIKE '%Test%'
When I try the second SELECT in a third-party-query-application it gives the correct resultset. So, the problem is, Visual Basic querys the database incorrectly when dealing with special characters.
As said before, I am a beginner in Sybase. Any help would be appreciated.
Thanks in advance.