17.06.2013 Views

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

❑ ComparisonStyle — Indicates the Windows comparison style (for example, case sensitivity) of<br />

the particular collation.<br />

❑ IsAnsiPaddingEnabled — Whether strings are padded to the same length before comparison<br />

or insert.<br />

❑ IsArithmaticAbortEnabled — Whether queries are terminated when a data overflow or<br />

divide-by-zero error occurs.<br />

The database parameter specifies the name of the database for which data on the named property will<br />

be returned. The property parameter contains the name of a database property and can be one of the<br />

following values:<br />

DB_ID<br />

The DB_ID function returns the database ID number. The syntax is as follows:<br />

DB_ID([‘’])<br />

The optional database_name parameter specifies which database’s ID number is required. If the database_name<br />

is not given, the current database will be used instead.<br />

DB_NAME<br />

The DB_NAME function returns the name of the database that has the specified ID number. The syntax is<br />

as follows:<br />

DB_NAME([])<br />

The optional database_id parameter specifies which database’s name is to be returned. If no<br />

database_id is given, the name of the current database will be returned.<br />

FILE_ID<br />

The FILE_ID function returns the file ID number for the specified file name in the current database. The<br />

syntax is as follows:<br />

FILE_ID(‘’)<br />

The file_name parameter specifies the name of the file for which the ID is required.<br />

FILE_NAME<br />

The FILE_NAME function returns the filename for the file with the specified file ID number. The syntax is<br />

as follows:<br />

FILE_NAME()<br />

Apendix A: System Functions<br />

The file_id parameter specifies the ID number of the file for which the name is required.<br />

619

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!