Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Contains in full text search

Author  Topic 

laker_66
Starting Member

5 Posts

Posted - 2004-04-30 : 09:14:15
Hi!!!
I was wondering how CONTAINS work in a dynamic sql statement where i have more than one table to join as below.
FULL TEXT IS ENABLED ON TABLE emp
This works.

CODE
select s.id from emp s
WHERE CONTAINS(*, '"test"')

This does not work

CODE
select s.id from emp s,emp1 s1
WHERE CONTAINS(*, '"test"')
and s.id=s1.id

I know the problem is * . But not sure how to use this just for emp table and not emp1 table.
The error is as follows
A CONTAINS or FREETEXT predicate can only operate on one table. Qualify the use of * with a table name.

Thanks!!

cas_o
Posting Yak Master

154 Posts

Posted - 2004-04-30 : 11:19:23
s.* would be my guess.

Let me know if it don't work.

;-]... Quack Waddle
Go to Top of Page

laker_66
Starting Member

5 Posts

Posted - 2004-05-01 : 12:21:09
Thanks cas_o . It worked !!!
Go to Top of Page
   

- Advertisement -