Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search for a dash
Message
From
17/07/2014 14:27:09
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Search for a dash
Environment versions
SQL Server:
SQL Server 2012
Application:
Web
Miscellaneous
Thread ID:
01603942
Message ID:
01603942
Views:
62
If I have a select like this:
DECLARE @Title Varchar(50)

SET @Title='Michel F%'

SELECT Client.Numero FROM Client WHERE Client.Title LIKE @Title
...it will find all records having a title starting with Michel F.

But, if I have this:
DECLARE @Title Varchar(50)

SET @Title='Michel F-%'

SELECT Client.Numero FROM Client WHERE Client.Title LIKE @Title
...it will not find anything, even if I have some title starting with Michel F-ournier, for example.

I assume there is a conversion that has to be done on such special character.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform