PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET Problems running full-text

Reply

Problems running full-text

 
Thread Tools Rate Thread
Old 30-06-2003, 01:58 PM   #1
Antonio Maciel
Guest
 
Posts: n/a
Default Problems running full-text


Hi.

I have a stored procedure that runs a query using full-text. In my code, I
create a string variable with the full-text expression ans pass this
variable to a paramter in my procedure, in order to avoid dynamic sql in my
stored procedure. My variable is created this way:

strSearchParam = "'""" & strSearch & """'" 'Here I concatenate my search
phrase with double quotes and plics

If I cut and paste the variable contents in my query analyzer, the procedure
runs ok. If I call the procedure from VB.NET passing the variable as a
parameter the procedure returns no rows. Is my concatenation wrong?

Thanks,

Antonio Maciel


  Reply With Quote
Old 02-07-2003, 10:35 PM   #2
Mary Chipman
Guest
 
Posts: n/a
Default Re: Problems running full-text

Probably. Test it in QA against the stored procedure using the T-SQL
debugger. You may be overdoing the delimiters.

-- Mary
MCW Technologies
http://www.mcwtech.com

On Mon, 30 Jun 2003 10:58:37 -0300, "Antonio Maciel"
<antmac@consys.com> wrote:

>Hi.
>
>I have a stored procedure that runs a query using full-text. In my code, I
>create a string variable with the full-text expression ans pass this
>variable to a paramter in my procedure, in order to avoid dynamic sql in my
>stored procedure. My variable is created this way:
>
>strSearchParam = "'""" & strSearch & """'" 'Here I concatenate my search
>phrase with double quotes and plics
>
>If I cut and paste the variable contents in my query analyzer, the procedure
>runs ok. If I call the procedure from VB.NET passing the variable as a
>parameter the procedure returns no rows. Is my concatenation wrong?
>
>Thanks,
>
>Antonio Maciel
>


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off