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

Tip: Looking for answers? Try searching our database.

full text search sql 2000 and indexed views

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Letford - 05 Nov 2007 08:09 GMT
Hi,
Is it possible to do a full text catalogue on an indexed view in SQL 2000?

It looks like you can only do tables and the functionality for indexed views
is in SQL 2005, is this correct?

Thanks
Hilary Cotter - 07 Nov 2007 10:33 GMT
You are correct, you can only full-text index indexed views in SQL 2005.

Signature

RelevantNoise.com - dedicated to mining blogs for business intelligence.

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

> Hi,
> Is it possible to do a full text catalogue on an indexed view in SQL 2000?
[quoted text clipped - 4 lines]
>
> Thanks
Adam P. Cassidy - 19 May 2008 16:36 GMT
Hilary,

Can you give an example of this?  I've tried to create an indexed view that
contains a text column and when I attempt to create the index I get the error:

Msg 1942, Level 16, State 1, Line 2
Cannot create index on view 'Test.dbo.FullTextView'. It contains text,
ntext, image or xml columns.

Here are my steps:

--Set the options to support indexed views.
SET NUMERIC_ROUNDABORT OFF;
SET ANSI_PADDING, ANSI_WARNINGS, CONCAT_NULL_YIELDS_NULL, ARITHABORT,
   QUOTED_IDENTIFIER, ANSI_NULLS ON;
GO
--Create view with schemabinding.
ALTER VIEW dbo.FullTextView
WITH SCHEMABINDING
AS
   SELECT Table1.OrderID, TextField1, TextField2
   FROM dbo.Table1 JOIN dbo.Table2
   ON Table1.OrderID = Table2.OrderID
   WHERE Table2.Status = 'Open'
GO
--Create an index on the view.
CREATE UNIQUE CLUSTERED INDEX idxFullTextView_TestIndex
   ON dbo.FullTextView (OrderID);

When I run this, I get the error.  I would love to be able to accomplish
what you are indicating in order to complete some performance testing since
currently the performance of full text searching frankly is horrible in the
situation I'm looking for.

Adam

> You are correct, you can only full-text index indexed views in SQL 2005.
>
[quoted text clipped - 6 lines]
> >
> > Thanks
Hilary Cotter - 20 May 2008 11:00 GMT
You can't full-text index views in SQL 2000.

> Hilary,
>
[quoted text clipped - 47 lines]
>> >
>> > Thanks
Adam P. Cassidy - 20 May 2008 15:19 GMT
This is a 2005 database.  I assumed it wasn't possible on 2005 either, until
I saw this post.  If it's possible with 2005, I'm trying to figure out where
in my example below I'm going wrong.

The caveat to this is that this WAS a 2000 database.  As I mentioned I'm in
the testing process and so I took the backup of the database, restored it
onto a 2005 installation, set the compatibility level to 90 and attempted to
run this.  Is that process not sufficient in order to accomplish this?

Adam

> You can't full-text index views in SQL 2000.
>
[quoted text clipped - 49 lines]
> >> >
> >> > Thanks
Hilary Cotter - 20 May 2008 19:53 GMT
Try varchar(max)

create table table1 (OrderID int not null identity constraint Table1PK
primary key,
TextField1 varchar(max), TextField2 varchar(max))
GO
create table table2 (OrderID int not null identity constraint Table2PK
primary key,
Status varchar(20))
GO
  --Create view with schemabinding.
 create VIEW dbo.FullTextView
 WITH SCHEMABINDING
 AS
    SELECT Table1.OrderID, TextField1, TextField2
    FROM dbo.Table1 JOIN dbo.Table2
    ON Table1.OrderID = Table2.OrderID
    WHERE Table2.Status = 'Open'
 GO
 --Create an index on the view.
 CREATE UNIQUE CLUSTERED INDEX idxFullTextView_TestIndex
    ON dbo.FullTextView (OrderID);
GO

> This is a 2005 database.  I assumed it wasn't possible on 2005 either,
> until
[quoted text clipped - 67 lines]
>> >> >
>> >> > Thanks
 
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.