다음을 통해 공유


FileGroup Object

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The FileGroup object exposes the attributes of a Microsoft SQL Server filegroup.

현재 개체를 보여 주는 SQL-DMO 개체 모델

Properties

Default Property (FileGroup)

ReadOnly Property

ID Property

Size Property

Name Property

 

Methods

CheckFilegroup Method

EnumObjects Method

CheckFilegroupDataOnly Method

Remove Method (Objects)

EnumFiles Method (FileGroup)

 

주의

A SQL Server filegroup categorizes the operating system files containing data from a single SQL Server database to simplify database administration tasks, such as backup. A filegroup is a property of a SQL Server database and cannot contain the operating system files of more than one database, though a single database can contain more than one filegroup.

When a database is created, it is created on exactly one filegroup named PRIMARY. After database creation, filegroups can be added to the database. A filegroup name can be specified in a CREATE TABLE or CREATE INDEX statement, directing data storage for a database.

With the FileGroup object, you can:

  • Create a SQL Server filegroup.
  • Remove an existing SQL Server filegroup.
  • Manage the physical storage of a SQL Server database by adding or removing DBFile objects to the DBFiles collection.

The Name property of a FileGroup object uses the SQL Server data type sysname. The Name property must be unique within the list of filegroups of a SQL Server database.

To create a SQL Server filegroup

  1. Create a FileGroup object.

  2. Set the Name property.

  3. Add the FileGroup object to the FileGroups collection of a connected Database object.

[!참고] The FileGroup object is compatible with instances of SQL Server version 7.0 and later. However, the FileGroup2 object extends the functionality of the FileGroup object for use with features that were introduced in SQL Server 2000.

참고 항목

참조

FileGroup2 Object

관련 자료

CREATE INDEX(Transact-SQL)
CREATE TABLE(Transact-SQL)

도움말 및 정보

SQL Server 2005 지원 받기