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

Database

 
GeneralDatabase schema Pin
Member 1697710-May-05 0:15
Member 1697710-May-05 0:15 
GeneralRe: Database schema Pin
Colin Angus Mackay10-May-05 0:43
Colin Angus Mackay10-May-05 0:43 
GeneralRe: Database schema Pin
Member 1697710-May-05 2:08
Member 1697710-May-05 2:08 
GeneralADO.NET output parameter Pin
Timothy_19829-May-05 20:58
Timothy_19829-May-05 20:58 
GeneralRe: ADO.NET output parameter Pin
Colin Angus Mackay9-May-05 22:49
Colin Angus Mackay9-May-05 22:49 
GeneralRe: ADO.NET output parameter Pin
Timothy_198210-May-05 0:00
Timothy_198210-May-05 0:00 
GeneralRemote query being executed multiple times Pin
alex12059-May-05 20:32
alex12059-May-05 20:32 
GeneralProblem to search with a hyphen Pin
Nik_Pick9-May-05 10:16
Nik_Pick9-May-05 10:16 
I created a full text index who contain organizations and there propreties. I did a stored proc that find all the organization in the table that correspond to a spécific name. The problem is when I have a hyphen in the name, the proc get case sensitive only for the first letter.

example :

search : arc-en-ciel, it returns : Arc-en-ciel CPE and arc-en-ciel
if I serch for : arC-eN-cIeL, it returns : Arc-en-ciel CPE but not arc-en-ciel
and if I search for : Arc-En-Ciel, it returns : Arc-en-ciel CPE and arc-en-ciel

my stored proc looks like this :

CREATE procedure SearchOrganization
(
@Name varchar(1000) = null
)as

declare @WhereName varchar(1000)

if (@Name is null)
set @WhereName = ''

else
begin
--Do poutine to extract and build WhereName clause

SET @WhereName = @Name

if(@KeyWordsOperator = 1) -- 'and'
SET @WhereName = REPLACE(@WhereName, N',', N'") and formsof(inflectional,"') + N'")'

else
if(@KeyWordsOperator = 0) -- 'or'
SET @WhereName = REPLACE(@WhereName, N',', N'") or formsof(inflectional, "' ) + N'")'

if(@KeyWordsOperator = 1 or @KeyWordsOperator = 0) -- 'and' et 'or'
Set @WhereName = ' contains(oo.u_Namestrip, ''formsof(inflectional, "' +@WhereName + ''')'

else --'EXACT'
Set @WhereName = 'oo.u_name = ''' +@WhereName + ''''


If (@IncludeAnd = 1)
set @WhereName = @And + @WhereName


set @IncludeAnd = 1
end


I'm a beginner at SQL and this the code was created by a other person. I tried to find something on the net to help me but I found nothing.

Sorry for my english,
Nik
Questionsql server 2000 documentor? Pin
WDI9-May-05 10:14
WDI9-May-05 10:14 
AnswerRe: sql server 2000 documentor? Pin
-Dr_X-10-May-05 10:10
-Dr_X-10-May-05 10:10 
GeneralNewbie help VS2003, SQLDataAdapter and Update Pin
Richard Schaefer9-May-05 9:19
Richard Schaefer9-May-05 9:19 
Generalunderstading if there is data inside a row filed Pin
Sasuko9-May-05 4:06
Sasuko9-May-05 4:06 
GeneralRe: understading if there is data inside a row filed Pin
Dave Kreskowiak9-May-05 5:37
mveDave Kreskowiak9-May-05 5:37 
Generalmy database is not case sensitive Pin
Sasuko9-May-05 3:48
Sasuko9-May-05 3:48 
GeneralRe: my database is not case sensitive Pin
Colin Angus Mackay9-May-05 5:06
Colin Angus Mackay9-May-05 5:06 
GeneralRe: my database is not case sensitive Pin
Sasuko10-May-05 12:38
Sasuko10-May-05 12:38 
GeneralDB Design-Going in circles Pin
hp1089-May-05 3:42
hp1089-May-05 3:42 
GeneralRe: DB Design-Going in circles Pin
Colin Angus Mackay9-May-05 4:44
Colin Angus Mackay9-May-05 4:44 
GeneralRe: DB Design-Going in circles Pin
hp1089-May-05 5:06
hp1089-May-05 5:06 
GeneralRe: DB Design-Going in circles Pin
Colin Angus Mackay9-May-05 5:13
Colin Angus Mackay9-May-05 5:13 
GeneralRe: DB Design-Going in circles Pin
hp1089-May-05 5:30
hp1089-May-05 5:30 
GeneralRe: DB Design-Going in circles Pin
Colin Angus Mackay9-May-05 5:57
Colin Angus Mackay9-May-05 5:57 
GeneralRe: DB Design-Going in circles Pin
hp1089-May-05 21:56
hp1089-May-05 21:56 
GeneralRe: DB Design-Going in circles Pin
Colin Angus Mackay9-May-05 22:47
Colin Angus Mackay9-May-05 22:47 
GeneralRe: DB Design-Going in circles Pin
hp1089-May-05 23:57
hp1089-May-05 23:57 

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.