dbTalk Databases Forums  

Rebuild Index Task (Maintainance Plan)

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Rebuild Index Task (Maintainance Plan) in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Noor
 
Posts: n/a

Default Rebuild Index Task (Maintainance Plan) - 04-21-2009 , 06:54 PM






Hello Professional,

I would like to ask one quick question regarding Maintainance Plan ->
Rebuild Index Task.

I have created Maintainance Plan and in that I used "Rebuild Index Task" to
rebuild the index and I set free space per page percentage to 20% that means
Fillfactor would be 80% right.

But when I generate the script, Maintainance plan use 20% as a fillfactor
instead of 80%... see below.

USE [Testing]
GO
ALTER INDEX [MSmerge_index_2105058535] ON [dbo].[Order] REBUILD WITH (
FILLFACTOR = 20, PAD_INDEX = ON, STATISTICS_NORECOMPUTE = OFF,
ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, SORT_IN_TEMPDB = OFF,
IGNORE_DUP_KEY = OFF, ONLINE = ON )

I was put under the impression that Free Space was the oposite of Fill
Factor. Meaning if I wanted to have an index rebuild with 80% fill factor I
would fill out the field "Change free space per page percentage to" to be
set to 20.

Please advice.

Thanks



Reply With Quote
  #2  
Old   
Artemakis Artemiou
 
Posts: n/a

Default Re: Rebuild Index Task (Maintainance Plan) - 04-22-2009 , 04:10 PM






Hi Noor,

Yes, when you set free space per page percentage to 20% it means that the
Fill Factor should be 80%.

Which version of SQL Server are you using?
Have you installed the latest Service Pack?

If you are using SQL Server 2005 install SP3
(http://www.microsoft.com/downloads/d...isplaylang=en),
reboot the machine (if necessary) and try again.

I have just tried it and now the generated script is correct.

Cheers

--

Artemakis Artemiou, SQL Server MVP
http://aartemiou.blogspot.com

This post is provided "as-is" and confers no rights.


"Noor" <naissani (AT) hotmail (DOT) com> wrote

Quote:
Hello Professional,

I would like to ask one quick question regarding Maintainance Plan -
Rebuild Index Task.

I have created Maintainance Plan and in that I used "Rebuild Index Task"
to rebuild the index and I set free space per page percentage to 20% that
means Fillfactor would be 80% right.

But when I generate the script, Maintainance plan use 20% as a fillfactor
instead of 80%... see below.

USE [Testing]
GO
ALTER INDEX [MSmerge_index_2105058535] ON [dbo].[Order] REBUILD WITH (
FILLFACTOR = 20, PAD_INDEX = ON, STATISTICS_NORECOMPUTE = OFF,
ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, SORT_IN_TEMPDB = OFF,
IGNORE_DUP_KEY = OFF, ONLINE = ON )

I was put under the impression that Free Space was the oposite of Fill
Factor. Meaning if I wanted to have an index rebuild with 80% fill factor
I would fill out the field "Change free space per page percentage to" to
be set to 20.

Please advice.

Thanks


Reply With Quote
  #3  
Old   
Noor
 
Posts: n/a

Default Re: Rebuild Index Task (Maintainance Plan) - 04-22-2009 , 07:11 PM



Thanks Artemakis


"Artemakis Artemiou" <do_not_send_spam> wrote

Quote:
Hi Noor,

Yes, when you set free space per page percentage to 20% it means that the
Fill Factor should be 80%.

Which version of SQL Server are you using?
Have you installed the latest Service Pack?

If you are using SQL Server 2005 install SP3
(http://www.microsoft.com/downloads/d...isplaylang=en),
reboot the machine (if necessary) and try again.

I have just tried it and now the generated script is correct.

Cheers

--

Artemakis Artemiou, SQL Server MVP
http://aartemiou.blogspot.com

This post is provided "as-is" and confers no rights.


"Noor" <naissani (AT) hotmail (DOT) com> wrote in message
news:ubfirxtwJHA.1236 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Hello Professional,

I would like to ask one quick question regarding Maintainance Plan -
Rebuild Index Task.

I have created Maintainance Plan and in that I used "Rebuild Index Task"
to rebuild the index and I set free space per page percentage to 20% that
means Fillfactor would be 80% right.

But when I generate the script, Maintainance plan use 20% as a fillfactor
instead of 80%... see below.

USE [Testing]
GO
ALTER INDEX [MSmerge_index_2105058535] ON [dbo].[Order] REBUILD WITH (
FILLFACTOR = 20, PAD_INDEX = ON, STATISTICS_NORECOMPUTE = OFF,
ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, SORT_IN_TEMPDB = OFF,
IGNORE_DUP_KEY = OFF, ONLINE = ON )

I was put under the impression that Free Space was the oposite of Fill
Factor. Meaning if I wanted to have an index rebuild with 80% fill factor
I would fill out the field "Change free space per page percentage to" to
be set to 20.

Please advice.

Thanks




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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.