Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 suspended process

Author  Topic 

hari.loganathan
Starting Member

11 Posts

Posted - 2010-12-28 : 11:36:39
There is an application which is configured to sql server 2005 the application freezing when they update ony records in the application,
when we check the database and there is always a suspended process that I have to kill in order for them go on..
Below in the process.
When we check the index build on this tranheader table we found the fill factor was missing,does that couldbe a reason
ALTER INDEX [TRANHEADER_ID] ON [dbo].[TRANSCRIPTHEADER] REBUILD WITH ( PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF )

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2010-12-28 : 11:42:38
A trigger doing something that is being blocked - creating another connection to access the updated data?
Have a look at the command executed by the suspecned process.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

hari.loganathan
Starting Member

11 Posts

Posted - 2010-12-28 : 11:48:10
Thanks, this is the command i see in the suspended process

ALTER INDEX [TRANHEADER_ID] ON [dbo].[TRANSCRIPTHEADER] REBUILD WITH ( PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF )
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-12-28 : 12:14:02
Any chance you can use ONLINE=ON? And perhaps SORT_IN_TEMPB=ON (if your tempdb is optimized)?

How are you performing the index rebuilds?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2010-12-28 : 19:35:54
Why is this being done from an application - is it performed for every update?

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

hari.loganathan
Starting Member

11 Posts

Posted - 2010-12-29 : 05:13:17
We have got the index of Transheader table which looks like this:

USE [Campus6]
GO
/****** Object: Index [TRANHEADER_ID] Script Date: 12/22/2010 09:21:19 ******/
CREATE UNIQUE NONCLUSTERED INDEX [TRANHEADER_ID] ON [dbo].[TRANSCRIPTHEADER]
(
[PEOPLE_CODE] ASC,
[PEOPLE_ID] ASC,
[TRANSCRIPT_SEQ] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

I found that this does not have the fill factor defined in it, will that be the cause the application to hang when they try update records..
Go to Top of Page

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2010-12-29 : 05:21:21
No should use the default.
I thought is was the alter index statement that was blocking things?


==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

hari.loganathan
Starting Member

11 Posts

Posted - 2010-12-29 : 06:34:03
Thats Right the alter index statement is blocking the things, what can be the possible resolutions?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-12-29 : 11:03:16
Did you see my reply?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2010-12-29 : 20:34:00
Where i sthe alter index command being executed from. Is it the application that is doing it?

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

hari.loganathan
Starting Member

11 Posts

Posted - 2010-12-30 : 06:05:32
Yes, it is the application which is doing it
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-12-30 : 12:57:13
Still no answer to my reply. We need to know about the ONLINE option. ONLINE=OFF is going to cause the problems you are seeing.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

hari.loganathan
Starting Member

11 Posts

Posted - 2011-01-03 : 08:37:38
Thanks Tara Kizer, Sorry for the delay in reply, have given the suggestion to check on that ONLINE=OFF
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-01-03 : 10:32:18
Well then that's the problem. That's going to cause blocking. What edition of SQL Server are you using? If it's enterprise edition, then can you post the DDL of the table and its indexes?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

hari.loganathan
Starting Member

11 Posts

Posted - 2011-01-03 : 10:46:28
Well i dont have the access to their SQL server, i need to email the person to send me the details
Go to Top of Page
   

- Advertisement -