I am trying to do a full-text search in a table containing email addresses.
Say my table contains an email address: abbuilder@realestate.com
Now because of word breaks, the periods in this email address function as a separator. The default SQL Server column prevents individual characters from being indexed (for obvious reasons).
This is usually not a problem and the address search works fine. However, I want to be able to search for parts of the address.
I would like to find " abbuilder @ real " using the following query. This will not work because the address is not indexed as " abbuilder @ real ... ".
SELECT * FROM [Address Book] WHERE CONTAINS ([a]. *, '" Abbuilder @ real *"')
Any suggestions on how to solve this? SQL Fiddle Test Example .
source
share