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 / June 2008

Tip: Looking for answers? Try searching our database.

How to pass Column value to Contains or FreeText Functions in SQL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MOUSTAFA ARAFA - 23 Jun 2008 08:32 GMT
Hi Folks,

I have a T-SQL query uses Contains,i have setup the index on my table,My
Question is: How can i pass column value to contains function in T-SQL,My
Query as follows:

SELECT Distinct
      [KW].[displayName]
     ,[KW].[title]
     ,[KW].[mail]
     ,[SG].[mail]
FROM  dbo.Table1 AS KW   Left Outer JOIN
         dbo.Table2 AS SG ON KW.Mail= SG.mail
  Where not contains(KW.proxyAddresses,SG.mail)

The error which i got :  incorrect syntax,the contains function doesnt
recognize the mail column value inb table2.

In the help,you have to pass either a variable or fixed string,i want to
pass a column value which is not mentioned on SQL 2000 or 2k5 help.

waiting for your help.
Hilary Cotter - 23 Jun 2008 20:47 GMT
You would need to use a cursor solution for something like this.

> Hi Folks,
>
[quoted text clipped - 18 lines]
>
> waiting for your help.
 
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



©2009 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.