I'm creating a non clustered index on SQL Server 2008 and it seems to never complete.
USE [Live_TheName]GO
CREATE NONCLUSTERED INDEX [iVersion] ON [dbo].[TheName]
(
[Version] ASC
)WITH (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]
GO
The tale has 500Mil records so there is a large number of records.
Running this after 24 hours showed that the process was at 0%.
Select R.Session_id,R.Command,R.Percent_completeFrom
sys.dm_exec_requests R
Inner Join
Sys.dm_exec_sessions S
on S.Session_id=R.Session_ID and S.IS_User_Process=1
This is a test DB, on the AWS cloud so there's nothing else using it?
Any ideas?
Thanks
Warrick