Click here to Skip to main content
15,917,455 members
Home / Discussions / Database
   

Database

 
GeneralRe: Dying on this query Pin
Hulicat21-Jun-07 6:13
Hulicat21-Jun-07 6:13 
GeneralRe: Dying on this query Pin
andyharman22-Jun-07 0:40
professionalandyharman22-Jun-07 0:40 
GeneralRe: Dying on this query Pin
Hulicat22-Jun-07 2:02
Hulicat22-Jun-07 2:02 
AnswerRe: Dying on this query Pin
Michael Potter21-Jun-07 10:52
Michael Potter21-Jun-07 10:52 
GeneralRe: Dying on this query Pin
Hulicat21-Jun-07 13:23
Hulicat21-Jun-07 13:23 
GeneralRe: Dying on this query Pin
Michael Potter22-Jun-07 3:05
Michael Potter22-Jun-07 3:05 
GeneralRe: Dying on this query Pin
Hulicat22-Jun-07 16:06
Hulicat22-Jun-07 16:06 
QuestionProblem with special characters in SqlParameter Pin
chovdry21-Jun-07 4:10
chovdry21-Jun-07 4:10 
Hi
When a input sqlparameter value contain special character(eg.') the SP is not able to execute.When the same query is executed independently it's working fine.

My query is.. Select * from SearchMetadata where title like '%IF I DON''T WIN, THE WORLD WILL SUFFER FOR IT%'

My SP is
ALTER procedure [dbo].[Search_METADATA]
@SearchCrteria varchar(8000)
as
BEGIN
Declare
@Text nvarchar(4000)

Set @Text='Select top 1000 * from vw_SearchMetadata where '+@SearchCrteria
exec (@Text)
END

I have tried with all possible solution.Placed double quote whereever single quote appeared.Tried ESCAPE claue.Couldn't find soluiton
Need suggestion to solve this.Appreciate your help.

Regards
Krish
AnswerRe: Problem with special characters in SqlParameter Pin
Colin Angus Mackay21-Jun-07 4:41
Colin Angus Mackay21-Jun-07 4:41 
GeneralRe: Problem with special characters in SqlParameter Pin
chovdry21-Jun-07 5:02
chovdry21-Jun-07 5:02 
GeneralRe: Problem with special characters in SqlParameter Pin
Mike Dimmick21-Jun-07 5:49
Mike Dimmick21-Jun-07 5:49 
AnswerRe: Problem with special characters in SqlParameter Pin
Krish - KP21-Jun-07 5:20
Krish - KP21-Jun-07 5:20 
GeneralRe: Problem with special characters in SqlParameter Pin
Mike Dimmick21-Jun-07 5:38
Mike Dimmick21-Jun-07 5:38 
GeneralRe: Problem with special characters in SqlParameter Pin
Krish - KP21-Jun-07 6:01
Krish - KP21-Jun-07 6:01 
QuestionFormula Pin
ScottM121-Jun-07 2:01
ScottM121-Jun-07 2:01 
AnswerRe: Formula Pin
Colin Angus Mackay21-Jun-07 2:18
Colin Angus Mackay21-Jun-07 2:18 
GeneralRe: Formula Pin
ScottM121-Jun-07 2:42
ScottM121-Jun-07 2:42 
AnswerRe: Formula Pin
Michael Potter21-Jun-07 11:11
Michael Potter21-Jun-07 11:11 
GeneralRe: Formula Pin
ScottM121-Jun-07 19:27
ScottM121-Jun-07 19:27 
Questionmax two records........ Pin
Member 387988121-Jun-07 1:34
Member 387988121-Jun-07 1:34 
AnswerRe: max two records........ Pin
WhiteGirl2321-Jun-07 2:00
WhiteGirl2321-Jun-07 2:00 
GeneralRe: max two records........ Pin
ScottM121-Jun-07 2:10
ScottM121-Jun-07 2:10 
AnswerRe: max two records........ Pin
ScottM121-Jun-07 2:04
ScottM121-Jun-07 2:04 
GeneralRe: max two records........ Pin
N a v a n e e t h21-Jun-07 2:59
N a v a n e e t h21-Jun-07 2:59 
JokeRe: max two records........ Pin
ScottM121-Jun-07 3:09
ScottM121-Jun-07 3:09 

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.