Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 6th, 2007, 06:17 AM
Authorized User
 
Join Date: May 2005
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to shaileshk Send a message via Yahoo to shaileshk
Default Full Text Search using MSSQL 2000 + ASP.net 2.0

Product search page

Button clieck event

Code:
 protected void btnSearch_Click(object sender, EventArgs e)
    {
  string stradd = txtProduct.Text;
        SqlHelper hlp = new SqlHelper();
        stradd=hlp.chkStr(stradd);
System.Data.SqlClient.SqlParameter[] Param = new System.Data.SqlClient.SqlParameter[1];
        Param[0] = new System.Data.SqlClient.SqlParameter("search_string", SqlDbType.VarChar, 255);
Code:
searchProducts -StoredProcedure


CREATE procedure searchProducts
@search_string    varchar(255)
AS
select * from x_products as FT_TBL INNER JOIN
CONTAINSTABLE(x_products, *, @search_string) as KEY_TBL
ON FT_TBL.tbl_IDX = KEY_TBL.[Key]
GO
i am usgin Ms SQL Fulltext search on my application

its working fine with single world but when i try to search with multiple work ie.(hello word) its give error message

yntax error occurred near 'hello'''. Expected ''''' in search condition hello world''

Please help me


shailesh kavathiya
__________________
Shailesh Kavathiya
===============
Good Morning SMS





Similar Threads
Thread Thread Starter Forum Replies Last Post
Full text Search problem aldwinenriquez SQL Server 2005 0 February 21st, 2006 10:51 PM
how to use word and pdf filter in full text search connect2sandep SQL Server 2005 0 February 9th, 2006 02:00 PM
Search Engine for Full-text Search Kala ASP.NET 1.0 and 1.1 Professional 2 August 29th, 2004 02:16 AM
FULL TEXT SEARCH PROBLEM jadoger SQL Server 2000 0 July 13th, 2004 03:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.