Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

sys.sysaltfiles (Transact-SQL)

Under special circumstances, contains rows corresponding to the files in a database.

Important noteImportant

This SQL Server 2000 system table is included as a view for backward compatibility. We recommend that you use the current SQL Server system views instead. To find the equivalent system view or views, see Mapping SQL Server 2000 System Tables to SQL Server 2005 System Views. This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

Column name

Data type

Description

fileid

smallint

File identification number. This is unique for each database.

groupid

smallint

File group identification number.

size

int

File size, in 8-kilobyte (KB) pages.

maxsize

int

Maximum file size, in 8-KB pages.

0 = No growth.

-1 = File will grow until the disk is full.

268435456 = Log file will grow to a maximum size of 2 TB.

NoteNote
Databases that are upgraded with an unlimited log file size will report -1 for the maximum size of the log file.

growth

int

Growth size of the database.

0 = No growth. Can be either the number of pages or the percentage of file size, depending on the value of status. If status is 0x100000, growth is the percentage of file size; otherwise, it is the number of pages.

status

int

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. 

perf

int

Reserved.

dbid

smallint

Database identification number of the database to which this file belongs.

name

sysname

Logical name of the file.

filename

nvarchar(260)

Name of the physical device. This includes the full path of the file.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.