ABS
ALL
AND
ANY
AVG
bit
COS
COT
DAY
EXP
GO
IN
LEN
LOG
MAX
MIN
NOT
OR
PI
SET
SIN
STR
SUM
TAN
USE
VAR
Expand Minimize
1 out of 1 rated this helpful - Rate this topic

FILE_NAME

SQL Server 2000

Returns the logical file name for the given file identification (ID) number.

Syntax

FILE_NAME ( file_id )

Arguments

file_id

Is the file identification number for which to return the file name. file_id is smallint.

Return Types

nvarchar(128)

Remarks

file_ID corresponds to the fileid column in sysfiles.

Examples

This example returns the file name for a file_ID of 1 (the master database file).

USE master
SELECT FILE_NAME(1)

See Also

Control-of-Flow Language

DELETE

INSERT

Metadata Functions

SELECT

UPDATE

WHERE

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.