SQL Stored Procedure Error - parameter with "-" character
- From: "amkate" <ab.kate@xxxxxxxxx>
- Date: 3 Jan 2007 05:10:43 -0800
Hi Everybody,
I had created a stored procedure wherein i had passed the parameter
contains(tablecolumnname,searchstring)
It is working very fine except
if the search string is carrying "-" character.
Let me explain the problem.
if the parameter is
((contains(col1,'"abcd*" '))) then it will return me the results set
with col1 carrying character abcd.
But if I use the same string
((contains(col1,'"xyz-lmn*" '))) then it wont return me the result
set. instead of this i need to modify this parameter as
((contains(nvarchar7,'xyz-lmn '))) then and then it gives me proper
result set.
Can some body tell me why this is happening? I am not an SQL expert.
Little confused about why stored procedure is behaving differently for
parameter containing "-" character.
.
- Follow-Ups:
- Prev by Date: ssis issue
- Next by Date: Re: Creating relationship between views
- Previous by thread: ssis issue
- Next by thread: Re: SQL Stored Procedure Error - parameter with "-" character
- Index(es):
Relevant Pages
|
Loading