Click here to Skip to main content
15,889,281 members
Home / Discussions / Database
   

Database

 
GeneralRe: Selecting distinct values Pin
enjoycrack21-Sep-05 0:57
enjoycrack21-Sep-05 0:57 
GeneralRe: Selecting distinct values Pin
Filipe Peixinho21-Sep-05 1:12
Filipe Peixinho21-Sep-05 1:12 
GeneralRe: Selecting distinct values Pin
enjoycrack21-Sep-05 1:17
enjoycrack21-Sep-05 1:17 
GeneralRe: Selecting distinct values Pin
Filipe Peixinho21-Sep-05 1:38
Filipe Peixinho21-Sep-05 1:38 
GeneralRe: Selecting distinct values Pin
enjoycrack21-Sep-05 2:01
enjoycrack21-Sep-05 2:01 
GeneralRe: Selecting distinct values Pin
Filipe Peixinho21-Sep-05 3:26
Filipe Peixinho21-Sep-05 3:26 
GeneralRe: Selecting distinct values Pin
miah alom22-Sep-05 5:06
miah alom22-Sep-05 5:06 
QuestionWhen LIKE operator doesn't use indexes. Pin
Tupax20-Sep-05 6:18
Tupax20-Sep-05 6:18 
In SQL Server (maybe in SQL language in general), if a field of a table has an index on it, and this field is searched with LIKE, its index won't be used if the argument to LIKE starts with the jolly char "%".

I'm trying to speed up the search and i'd like to know if someone here has some ideas.

The customer would accept a search for whole word, so currently the idea would be to create a separate search table, whose record would contain the fields of the primary key of the main table plus another field which would contain a single word from the main table; this field would have an index.

The search table would be populated by a trigger which would parse the content of the field of the main table and would insert one record into the search table for every parsed word from the main table.

Do anyone has other possible solutions to try, or even just some considerations ?
AnswerRe: When LIKE operator doesn't use indexes. Pin
Andy Brummer20-Sep-05 8:02
sitebuilderAndy Brummer20-Sep-05 8:02 
GeneralRe: When LIKE operator doesn't use indexes. Pin
Tupax20-Sep-05 21:43
Tupax20-Sep-05 21:43 
QuestionRe: When LIKE operator doesn't use indexes. Pin
Tupax20-Sep-05 21:57
Tupax20-Sep-05 21:57 
Questionusing xml Pin
suchita2420-Sep-05 0:50
suchita2420-Sep-05 0:50 
AnswerRe: using xml Pin
Frank Kerrigan20-Sep-05 0:55
Frank Kerrigan20-Sep-05 0:55 
GeneralRe: using xml Pin
sreejith ss nair20-Sep-05 1:09
sreejith ss nair20-Sep-05 1:09 
QuestionBig problem Pin
vtalau19-Sep-05 23:57
vtalau19-Sep-05 23:57 
AnswerRe: Big problem Pin
Frank Kerrigan20-Sep-05 0:35
Frank Kerrigan20-Sep-05 0:35 
GeneralRe: Big problem Pin
vtalau21-Sep-05 0:33
vtalau21-Sep-05 0:33 
AnswerRe: Big problem Pin
enjoycrack20-Sep-05 0:36
enjoycrack20-Sep-05 0:36 
AnswerRe: Big problem Pin
sreejith ss nair20-Sep-05 1:13
sreejith ss nair20-Sep-05 1:13 
GeneralRe: Big problem Pin
vtalau21-Sep-05 0:29
vtalau21-Sep-05 0:29 
GeneralRe: Big problem Pin
sreejith ss nair21-Sep-05 0:36
sreejith ss nair21-Sep-05 0:36 
Questionconnection pooling Pin
minkinin19-Sep-05 22:28
minkinin19-Sep-05 22:28 
AnswerRe: connection pooling Pin
enjoycrack19-Sep-05 23:39
enjoycrack19-Sep-05 23:39 
GeneralRe: connection pooling Pin
Anonymous20-Sep-05 20:38
Anonymous20-Sep-05 20:38 
AnswerRe: connection pooling Pin
sreejith ss nair20-Sep-05 1:20
sreejith ss nair20-Sep-05 1:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.