Click here to Skip to main content
15,895,746 members
Home / Discussions / Database
   

Database

 
AnswerRe: Timeout problem Pin
kubben15-Oct-07 3:54
kubben15-Oct-07 3:54 
AnswerRe: Timeout problem Pin
Mike Dimmick15-Oct-07 3:56
Mike Dimmick15-Oct-07 3:56 
AnswerRe: Timeout problem Pin
gratisaccount15-Oct-07 18:51
gratisaccount15-Oct-07 18:51 
GeneralRe: Timeout problem Pin
kubben16-Oct-07 2:48
kubben16-Oct-07 2:48 
QuestionProblem with ISNULL Pin
braj yadav15-Oct-07 2:02
braj yadav15-Oct-07 2:02 
AnswerRe: Problem with ISNULL Pin
kubben15-Oct-07 2:45
kubben15-Oct-07 2:45 
AnswerRe: Problem with ISNULL Pin
Frank Kerrigan15-Oct-07 3:07
Frank Kerrigan15-Oct-07 3:07 
AnswerRe: Problem with ISNULL Pin
Michael Potter15-Oct-07 5:44
Michael Potter15-Oct-07 5:44 
As written, your query will return every row when either @skill1 or @skill2 is NULL because skill always matches skill throughout all rows.

Try something simpler like this:
((skill LIKE '%' + @skill1 + '%') OR
(skill LIKE '%' + @skill2 + '%'))

Concatination with a NULL value results in a NULL value. LIKE NULL will allways return NULL and therefore not qualify the row for inclusion. The OR will allow the other line to qualify or disqualify the row.

The added parenthesis are there for the OR. I have always had trouble with OR when I let the parser/compiler handle what is being OR'd.
Questionexception Pin
Trustapple15-Oct-07 0:32
Trustapple15-Oct-07 0:32 
AnswerRe: exception Pin
Andy_L_J15-Oct-07 2:54
Andy_L_J15-Oct-07 2:54 
AnswerRe: exception Pin
Mike Dimmick15-Oct-07 4:02
Mike Dimmick15-Oct-07 4:02 
QuestionJOINS Pin
karoitay14-Oct-07 23:53
karoitay14-Oct-07 23:53 
AnswerRe: JOINS Pin
John-ph14-Oct-07 23:56
John-ph14-Oct-07 23:56 
Generalthanks Pin
karoitay15-Oct-07 0:26
karoitay15-Oct-07 0:26 
QuestionHow do I pass DB name as parameter to stored procedure? Pin
Steven J Jowett14-Oct-07 22:22
Steven J Jowett14-Oct-07 22:22 
AnswerRe: How do I pass DB name as parameter to stored procedure? Pin
Marek Grzenkowicz14-Oct-07 23:43
Marek Grzenkowicz14-Oct-07 23:43 
GeneralRe: How do I pass DB name as parameter to stored procedure? Pin
Steven J Jowett14-Oct-07 23:54
Steven J Jowett14-Oct-07 23:54 
QuestionUnable to complete login process due to delay in opening server connection Pin
Anilkumar K V14-Oct-07 20:39
Anilkumar K V14-Oct-07 20:39 
QuestionDatabase is suspect Pin
Phan Van Thao14-Oct-07 16:19
Phan Van Thao14-Oct-07 16:19 
AnswerRe: Database is suspect Pin
Pete O'Hanlon15-Oct-07 2:01
mvePete O'Hanlon15-Oct-07 2:01 
GeneralRe: Database is suspect Pin
Phan Van Thao15-Oct-07 15:03
Phan Van Thao15-Oct-07 15:03 
QuestionWindows authentication - not prompted? [modified] Pin
dandy7214-Oct-07 11:36
dandy7214-Oct-07 11:36 
AnswerRe: Windows authentication - not prompted? Pin
Mike Dimmick15-Oct-07 3:52
Mike Dimmick15-Oct-07 3:52 
GeneralRe: Windows authentication - not prompted? Pin
dandy7215-Oct-07 10:15
dandy7215-Oct-07 10:15 
QuestionSet Null in Ms Access DB again! Pin
Whoami Whoami14-Oct-07 8:35
Whoami Whoami14-Oct-07 8:35 

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.