我尝试创建索引。是的,表很大(135.8M记录)。实际上没有运行应用程序。我一个接一个地创造。每个创作都需要更多时间。
IF NOT EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[RL_SAP_01]') AND name = N'RL_SAP_01BELEGNUMMER')
CREATE NONCLUSTERED INDEX [RL_SAP_01BELEGNUMMER] ON [dbo].[RL_SAP_01]
(
[BELEGNUMMER] 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]
GO
IF NOT EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[RL_SAP_01]') AND name = N'RL_SAP_01DOCTYPE')
CREATE NONCLUSTERED INDEX [RL_SAP_01DOCTYPE] ON [dbo].[RL_SAP_01]
(
[DOCTYPE] 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]
GO
有什么想法吗?
答案 0 :(得分:0)
让我们解决这个问题。
你无能为力。检查硬件,您的服务器可能只是为此操作功能不足。数据库中的一些东西需要时间。