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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The user parameter is the username to be used. If no value for user is provided, the current user is used.<br />

USER_NAME<br />

The USER_NAME function is the functional reverse of USER_ID, and returns the specified user’s username<br />

in the database given a database ID number. The syntax is as follows:<br />

USER_NAME([‘’])<br />

The user id parameter is the id of the user you want the name for. If no value for user id is provided,<br />

the current user is assumed.<br />

String Functions<br />

The string functions perform actions on string values and return strings or numeric values. The string<br />

functions are:<br />

❑ ASCII<br />

❑ CHAR<br />

❑ CHARINDEX<br />

❑ DIFFERENCE<br />

❑ LEFT<br />

❑ LEN<br />

❑ LOWER<br />

❑ LTRIM<br />

❑ NCHAR<br />

❑ PATINDEX<br />

❑ QUOTENAME<br />

❑ REPLACE<br />

❑ REPLICATE<br />

❑ REVERSE<br />

❑ RIGHT<br />

❑ RTRIM<br />

❑ SOUNDEX<br />

❑ SPACE<br />

❑ STR<br />

❑ STUFF<br />

❑ SUBSTRING<br />

Apendix A: System Functions<br />

633

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

Saved successfully!

Ooh no, something went wrong!