Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Other Technologies / Full-Text Search / August 2008

Tip: Looking for answers? Try searching our database.

'FORMSOF (INFLECTIONAL,.....Full text search..help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bluestar - 11 Aug 2008 18:06 GMT
Hello

I want to write stored procedure,which will use FormsOF Inflectional,

BUT I am getting error,actually I dont know how to pass parameter in the
Inflectional query.

here it goes....
USE [charlotte]
GO
/****** Object: StoredProcedure [dbo].[sp_AdvanceSearch] Script Date:
08/11/2008 12:46:20 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER PROCEDURE [dbo].[sp_AdvanceSearch]

@Text VARCHAR(300)

As
Begin
Set nocount on;

Select s.SystemElementID,DocumentID, SETitleText as "Title",ElementText as
"SearchElement"

FROM TextElement t,SystemElement s,TOCMap tp,TableOfContents tc

Where t.SystemElementID=s.SystemElementID AND Freetext(ElementText,'FORMSOF
(INFLECTIONAL,'+@Test+')') AND s.SystemElementID=tp.SystemElementID AND tp.
TableOfContentsID=tc.TableOfContentsID

END

If I am using '+' before and after @text,then also it is giving me error,

Please help,I have been trying to do this from long time.

Thank You
Russell Fields - 13 Aug 2008 19:51 GMT
bluestar,

Try it this way:
...
DECLARE @FullText NVARCHAR(500)
SET @FullText = 'FORMSOF(INFLECTIONAL,'+@Text+')'

Select s.SystemElementID,DocumentID, SETitleText as "Title",ElementText as
"SearchElement"
FROM TextElement t,SystemElement s,TOCMap tp,TableOfContents tc
Where t.SystemElementID=s.SystemElementID AND
 Freetext(ElementText,@FullText)
AND s.SystemElementID=tp.SystemElementID AND
tp.TableOfContentsID=tc.TableOfContentsID

RLF

> Hello
>
[quoted text clipped - 39 lines]
>
> Thank You
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.