Hello I have this code below. I am confused on what Fill Factor and Pad Index does in this code. Can anyone explain what they actually do in simple terms? I'm confused about their functionality. Thank you very much!
create table #emp
{
sessionid varchar(10),
USERID varchar(10),
SOLDTO varchar(10)
)
CREATE INDEX [ind_1] ON [dbo].[#emp]([sessionid]) WITH FILLFACTOR = 50, PAD_INDEX ON [PRIMARY]
insert into #emp select distinct sessionid, USERID, SOLDTO from #TEMP1 where USERID is not null and SOLDTO is not null
create table #emp
{
sessionid varchar(10),
USERID varchar(10),
SOLDTO varchar(10)
)
CREATE INDEX [ind_1] ON [dbo].[#emp]([sessionid]) WITH FILLFACTOR = 50, PAD_INDEX ON [PRIMARY]
insert into #emp select distinct sessionid, USERID, SOLDTO from #TEMP1 where USERID is not null and SOLDTO is not null