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 / July 2006

Tip: Looking for answers? Try searching our database.

View to a table with an FTI

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MrTim - 27 Jul 2006 13:33 GMT
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
it was of interest that the view method didn't work.  Feature/bug??
Simon Sabin - 28 Jul 2006 00:14 GMT
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

> 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
[quoted text clipped - 3 lines]
> but it was of interest that the view method didn't work.
> Feature/bug??
Hilary Cotter - 29 Jul 2006 11:41 GMT
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.

Signature

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

> We recently created a table with an FTI in a database, then created a view
> to
[quoted text clipped - 4 lines]
> We got round it by changing our SP to use the FQN instead of the view, but
> it was of interest that the view method didn't work.  Feature/bug??
Daniel Crichton - 31 Jul 2006 13:02 GMT
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

> 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
[quoted text clipped - 25 lines]
>> but
>> it was of interest that the view method didn't work.  Feature/bug??
Hilary Cotter - 31 Jul 2006 13:57 GMT
Duh, ok in SQL 2005 you can fulltext index views which should allow this.

Signature

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

> Hilary, I think he meant doing something like this:
>
[quoted text clipped - 37 lines]
>>> but
>>> it was of interest that the view method didn't work.  Feature/bug??
 
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.