Unix Technical Forum

How stopping and restarting full text indexing?

This is a discussion on How stopping and restarting full text indexing? within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi, I've got a full text index which works fine, SQLSERVER2000/WIN 2000 SERVER. The system requires to update indexes ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 05:49 AM
Perre Van Wilrijk
 
Posts: n/a
Default How stopping and restarting full text indexing?

Hi,

I've got a full text index which works fine, SQLSERVER2000/WIN 2000 SERVER.

The system requires to update indexes immediately, so I use a timestamp
field to enable this. No problems so far.

Now, I've got a stored procedures which nearly daily inserts about 10.000
rows. When doing this while full text indexing is active, all users start
complaining about performance. In order to work around this problem I tried
doing the following ...

Create myStoredProcedure
-- begin of stored procedure
exec sp_fulltext_table 'adsfull', 'stop_background_updateindex'
exec sp_fulltext_table 'adsfull', 'stop_change_tracking'
--
-- insert 10.000 rows
--
-- end of stored procedure
exec sp_fulltext_table 'adsfull', 'start_change_tracking'
exec sp_fulltext_table 'adsfull', 'start_background_updateindex'

Now, it seems this doesn't work. SQL Server keeps tracking changes and
updating indexes. Also if I cut away the stop instructions and paste them
into query analyzer before starting the stored procedure.

So, if I check the status via select fulltextcatalogproperty('FTADS',
'Populatestatus') ... it returns value 6 (incremental in progress) instead
of 0 (idle) while executing

(0=idle, 1=full population in progress, 6=incremental in progress, 9=change
tracking)

The only way I can resolve this issue is to stop the indexing via the
enterprise manager and to restart after the stored procedure is executed.

Any help appreciated.

--
Kind regards,
Perre Van Wilrijk,
Remove capitals to get my real email address,


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 05:49 AM
Simon Hayes
 
Posts: n/a
Default Re: How stopping and restarting full text indexing?


"Perre Van Wilrijk" <prSPAM@AkoopjeskrantWAY.be> wrote in message
news:Jt6dnU-r0fQBaGXcRVnyuA@scarlet.biz...
> Hi,
>
> I've got a full text index which works fine, SQLSERVER2000/WIN 2000
> SERVER.
>
> The system requires to update indexes immediately, so I use a timestamp
> field to enable this. No problems so far.
>
> Now, I've got a stored procedures which nearly daily inserts about 10.000
> rows. When doing this while full text indexing is active, all users start
> complaining about performance. In order to work around this problem I
> tried
> doing the following ...
>
> Create myStoredProcedure
> -- begin of stored procedure
> exec sp_fulltext_table 'adsfull', 'stop_background_updateindex'
> exec sp_fulltext_table 'adsfull', 'stop_change_tracking'
> --
> -- insert 10.000 rows
> --
> -- end of stored procedure
> exec sp_fulltext_table 'adsfull', 'start_change_tracking'
> exec sp_fulltext_table 'adsfull', 'start_background_updateindex'
>
> Now, it seems this doesn't work. SQL Server keeps tracking changes and
> updating indexes. Also if I cut away the stop instructions and paste them
> into query analyzer before starting the stored procedure.
>
> So, if I check the status via select fulltextcatalogproperty('FTADS',
> 'Populatestatus') ... it returns value 6 (incremental in progress) instead
> of 0 (idle) while executing
>
> (0=idle, 1=full population in progress, 6=incremental in progress,
> 9=change
> tracking)
>
> The only way I can resolve this issue is to stop the indexing via the
> enterprise manager and to restart after the stored procedure is executed.
>
> Any help appreciated.
>
> --
> Kind regards,
> Perre Van Wilrijk,
> Remove capitals to get my real email address,
>
>


I have no real idea about why your proc isn't stopping the indexing, however
if it works from EM then it's possible that EM is doing something extra
behind the scenes. It might be worth using Profiler to trace what EM is
doing when you stop the indexing, and then copy that in your procedure.

You might also want to post to microsoft.public.sqlserver.fulltext to see if
someone has a better answer.

Simon


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:54 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com