Originally posted by MrMarkyMark
View Post
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
FullText Search - SQL Server
Collapse
X
-
Att with CONTAINS or FREETEXT should turn up the row where a correctly indexed column contains Att (no wildcards needed).The greatest trick the devil ever pulled was convincing the world that he didn't exist -
ah.....gotchaOriginally posted by LondonManc View PostAtt with CONTAINS or FREETEXT should turn up the row where a correctly indexed column contains Att (no wildcards needed).
I should add though I was explicitly talking about eh Like search string he posted.The Chunt of Chunts.Comment
-
In the process of coding, and then popping back here to answer queries, I made a mistake.Originally posted by MrMarkyMark View PostWhy would it???
% just looks for Unknowns at the end of your string?
The "r" isn't at the end..
I did actually meanworksCode:Like '%attrn'
Knock first as I might be balancing my chakras.Comment
-
OK, but may be worth considering LMs comment..Originally posted by suityou01 View PostIn the process of coding, and then popping back here to answer queries, I made a mistake.
I did actually meanworksCode:Like '%attrn'
The Chunt of Chunts.Comment
-
Run this and see if it works after that:Originally posted by suityou01 View PostI did do the following
Edit : 2012Code:ALTER FULLTEXT INDEX ON MyFullTextTable SET STOPLIST = OFF
Code:ALTER FULLTEXT INDEX ON MyFullTextTable START FULL POPULATION
The greatest trick the devil ever pulled was convincing the world that he didn't existComment
-
Thank you LM.Originally posted by LondonManc View PostRun this and see if it works after that:
Code:ALTER FULLTEXT INDEX ON MyFullTextTable START FULL POPULATION
I tried and got this.
Warning: Request to start a full-text index population on table or indexed view MyFullTextTable' is ignored because a population is currently active for this table or indexed view.Knock first as I might be balancing my chakras.Comment
-
I believe in either case LM is saying we are expecting a hit.Originally posted by MrMarkyMark View PostOK, but may be worth considering LMs comment..
Eg 'Attn' is contained in the string 'Attrn'Knock first as I might be balancing my chakras.Comment
-
Ah okay, so you've already got one.Originally posted by suityou01 View PostThank you LM.
I tried and got this.
Have you used CHARINDEX to see what rows contain 'Att'?
e.g.
Code:SELECT TOP 20 * FROM MyFullTextTable WHERE CHARINDEX('Att', TextColumn) >0The greatest trick the devil ever pulled was convincing the world that he didn't existComment
-
Yes, and this works.Originally posted by LondonManc View PostAh okay, so you've already got one.
Have you used CHARINDEX to see what rows contain 'Att'?
e.g.
Code:SELECT TOP 20 * FROM MyFullTextTable WHERE CHARINDEX('Att', TextColumn) >0Knock first as I might be balancing my chakras.Comment
-
In summary then, CONTAINS(YourColumn,'Att') doesn't work but CHARINDEX('Att', Yourcolumn) >0 gets results?
You've created the full-text catalog?
You've created the full-text index on the table and correctly associated it with the catalog above?
Have you tried doing it by using the wizard in SSMS?The greatest trick the devil ever pulled was convincing the world that he didn't existComment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- What the Ray McCann Loan Charge Review means for contractors Today 06:21
- IT contractor demand defied seasonal slump in December 2025 Yesterday 07:10
- Five tax return hacks for contractors as Jan 31st looms Jan 12 07:45
- How to land a temporary technology job in 2026 Jan 9 07:01
- Spring Forecast 2026 ‘won’t put up taxes on contractors’ Jan 8 07:26
- Six things coming to contractors in 2026: a year of change, caution and (maybe) opportunity Jan 7 06:24
- Umbrella companies, beware JSL tunnel vision now that the Employment Rights Act is law Jan 6 06:11
- 26 predictions for UK IT contracting in 2026 Jan 5 07:17
- How salary sacrifice pension changes will hit contractors Dec 24 07:48
- All the big IR35/employment status cases of 2025: ranked Dec 23 08:55

Comment