What does ON [PRIMARY] mean?

后端 未结 4 1934
广开言路
广开言路 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:31

    When you create a database in Microsoft SQL Server you can have multiple file groups, where storage is created in multiple places, directories or disks. Each file group can be named. The PRIMARY file group is the default one, which is always created, and so the SQL you've given creates your table ON the PRIMARY file group.

    See MSDN for the full syntax.

提交回复
热议问题