What does ON [PRIMARY] mean?

后端 未结 4 1920
广开言路
广开言路 2020-12-04 08:56

I\'m creating an SQL setup script and I\'m using someone else\'s script as an example. Here\'s an example of the script:

SET ANSI_NULLS ON
GO
SET QUOTED_IDE         


        
4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-04 09:29

    ON [PRIMARY] will create the structures on the "Primary" filegroup. In this case the primary key index and the table will be placed on the "Primary" filegroup within the database.

提交回复
热议问题