Sqlserver-error Log

Source: Internet
Author: User

Set Primary KEY (composite primary key) in table design, provided that 300多万条 data is already in the table

Error:

このインデックス operation occupies necessary なメモリはdopあたり2048 kbです. Necessary なメモリの Roa 8264 KB (4のdopの) は, サーバーの detailed structure オプション "index create memory (KB)" occupies set されたsp_configure 704 Kbよりも. この set サイズを やすか, Dopを minus らしてから, クエリを and Natsumi Sato line してください.
The system is made into a できませんでした. Previously のエラーを べてください.

Found sp_configure to be a good thing.

--Controls the maximum amount of memory initially allocated for creating an index
sp_configure ' index create memory ', 9216
GO
Reconfigure
Go

Execute script

ALTER TABLE [DB]. [dbo]. [TBL] Add CONSTRAINT pk_tbl primary key ([AAA] ASC, [BBB] ASC, [CCC] ASC)

Sqlserver-error Log

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.