all groups > sql server full text search > july 2006 >
You're in the

sql server full text search

group:

View to a table with an FTI


View to a table with an FTI MrTim
7/27/2006 5:33:01 AM
sql server full text search: We recently created a table with an FTI in a database, then created a view to
this table in another database. We found we were not able to access the FTI
using CONTAINS through the view.

We got round it by changing our SP to use the FQN instead of the view, but
Re: View to a table with an FTI Simon Sabin
7/27/2006 11:14:56 PM
Hello MrTim,

Feature.

Imagine if the view referenced 2 tables with full text indexes, wouldn't
work.

Simon Sabin
SQL Server MVP
http://sqlblogcasts.com/blogs/simons


[quoted text, click to view]

Re: View to a table with an FTI Hilary Cotter
7/29/2006 12:00:00 AM
I'm confused. I can get this to work. In pubs, FTI the au_lname column in
authors table, then in northwinds create this view

use northwind
GO
create view test
as
select * from pubs.dbo.authors where contains(*,'ringer')
GO
create view test1
as
select * from pubs.dbo.authors
join (select * from containstable(pubs.dbo.authors,*,'ringer')) as x
on x.[key]=pubs.dbo.authors.au_id
GO
select * from test
--two rows returned.
select * from test1
--two rows returned.

--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com



[quoted text, click to view]

Re: View to a table with an FTI Daniel Crichton
7/31/2006 12:00:00 AM
Hilary, I think he meant doing something like this:

create view test1 as
select * from pubs.dbo.authors
go

select * from test1 where contains(*,'ringer')

which won't work because the FTI is on the base table, not on the view.

Dan


[quoted text, click to view]

Re: View to a table with an FTI Hilary Cotter
7/31/2006 8:57:57 AM
Duh, ok in SQL 2005 you can fulltext index views which should allow this.

--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com



[quoted text, click to view]

AddThis Social Bookmark Button