In one of my Client code I have seen,
Create table Students (id int, name varchar 100) on PRIMARY
What is the importance of "on" in create table.?? Thank you in advance.
In one of my Client code I have seen,
Create table Students (id int, name varchar 100) on PRIMARY
What is the importance of "on" in create table.?? Thank you in advance.
Specifies the partition scheme or filegroup on which the table is stored
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 the question here