Hi,
I've created a table in SQL Server 2000 and I'm now trying to search
through the data and return specific rows. I'm using this command:
select * from Export where libelle_court=' Recherche d'investisseurs '
The problem is this: The search fails whenever there is a curly
single quotation mark within the table field ( ' as opposed to ' ).
For example, if the field entry in my table is this:
Recherche d'investisseurs
then both of the following commands retun no fields:
select * from Export where libelle_court=' Recherche d'investisseurs '
select * from Export where libelle_court=' Recherche d''investisseur s'
However, if the field entry in my table is this:
Recherche d'investisseurs
then both of the commands quoted above succeed.
How can I get SQL Server to treat the curly quotation mark correctly
and return the right results? I've tried changing the collation but
with no success.
Thanks,
Rob
I've created a table in SQL Server 2000 and I'm now trying to search
through the data and return specific rows. I'm using this command:
select * from Export where libelle_court=' Recherche d'investisseurs '
The problem is this: The search fails whenever there is a curly
single quotation mark within the table field ( ' as opposed to ' ).
For example, if the field entry in my table is this:
Recherche d'investisseurs
then both of the following commands retun no fields:
select * from Export where libelle_court=' Recherche d'investisseurs '
select * from Export where libelle_court=' Recherche d''investisseur s'
However, if the field entry in my table is this:
Recherche d'investisseurs
then both of the commands quoted above succeed.
How can I get SQL Server to treat the curly quotation mark correctly
and return the right results? I've tried changing the collation but
with no success.
Thanks,
Rob
Comment