Sign In
Philippe TROTIN - SQL Server Blog
Ce Blog est dédié à SQL Server
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Blog Home
Email Blog Author
Share this
RSS for posts
Atom
RSS for comments
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
SQL Server 2005
Archive
Archives
January 2008
(1)
October 2006
(1)
June 2006
(1)
June 2005
(1)
January 2005
(1)
SQL Server 2005 - Script to Build all FullText catalog
MSDN Blogs
>
Philippe TROTIN - SQL Server Blog
>
SQL Server 2005 - Script to Build all FullText catalog
SQL Server 2005 - Script to Build all FullText catalog
ptrotin
4 Oct 2006 7:51 AM
Comments
1
-- SQL 2005 - Build all FullText catalog
DECLARE
@Cur_CatalogName
nvarchar
(
max
)
DECLARE
My_Cursor
CURSOR
FAST_FORWARD
FOR
SELECT
name
FROM
sys.fulltext_catalogs
OPEN
My_Cursor
FETCH
NEXT
FROM
My_Cursor
INTO
@Cur_CatalogName
WHILE
(
@@fetch_status
=
0
)
BEGIN
PRINT
'FullText Catalog: '
+
@Cur_CatalogName
EXECUTE
sp_fulltext_catalog
@Cur_CatalogName
,
'Rebuild'
;
EXECUTE
sp_fulltext_catalog
@Cur_CatalogName
,
'start_full'
;
FETCH
NEXT
FROM
My_Cursor
INTO
@Cur_CatalogName
END
CLOSE
My_Cursor
DEALLOCATE
My_Cursor
1 Comments
SQL Server 2005
Blog - Comment List MSDN TechNet
Comments
Loading...