Hi All,
Lock request time out period exceeded, error 1222" will appear when I try to expand the tables list in database in SQL Server Management Studio 2012 (Enterprises).
I am creating partition on my table which is having more than 200 million records. Initially I thought this is happening due to ONLINE=OFF option is set for cluster index which will partition the existing table. But this is not true. I tried with ONLINE=ON & still I can see same problem.
Below is the index which I am running to Partition my table:
USE [MY_DB]
GO
BEGIN TRANSACTION
CREATE CLUSTERED INDEX [TRANS_PS_635112970545378233] ON [dbo].[Table]
(
[Date]
)WITH (SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF) ON [MY_PS]([Date])
DROP INDEX [TRANS_PS_635112970545378233] ON [dbo].[Table]
COMMIT TRANSACTIONAfter running this query which is taking around 9-10 hours I am getting error: "Lock request time out period exceeded. (Microsoft SQL Server, Error: 1222)" when I try to expand the tables list in database in SQL Server Management Studio 2012 (Enterprises)
My DBA suggested that need to snapshot_isolation_state =1 in sys.databases( SELECT * FROM sys.databases) at DB level. I am not sure so looking for opinion.
Thanks Shiven:) If Answer is Helpful, Please Vote