patternsqlMinor
Meaning of "nonclustered located on primary"
Viewed 0 times
meaninglocatedprimarynonclustered
Problem
When I run
I am more interested in the located on PRIMARY part, What does it mean?
sp_help (using ALT+F1) for a table, on the indexes, there is a column index_description. and the rows have for example:- nonclustered located on PRIMARY (on foreign keys)
- nonclustered, hypothetical located on PRIMARY (on non clustered indexes I created)
- clustered, unique, primary key located on PRIMARY
I am more interested in the located on PRIMARY part, What does it mean?
Solution
This is the name of the filegroup or partition scheme that the index is created on. This can be specified when creating an index with a second
The
The primary filegroup contains the primary data file and any other
files not specifically assigned to another filegroup. All pages for
the system tables are allocated in the primary filegroup.
More info about Files and Filegroups here
ON clause.The
sp_help procedure calls sp_helpindex which retrieves the name from sys.data_spacesThe primary filegroup contains the primary data file and any other
files not specifically assigned to another filegroup. All pages for
the system tables are allocated in the primary filegroup.
More info about Files and Filegroups here
Context
StackExchange Database Administrators Q#45351, answer score: 9
Revisions (0)
No revisions yet.