Funções de sistema (Transact-SQL)

As funções a seguir executam operações em e retornam informações sobre valores, objetos e configurações no SQL Server.

As funções do sistema Transact-SQL e sua propriedade de determinismo estão listadas na tabela a seguir. Para obter mais informações sobre determinismo de função, consulte Funções determinísticas e não-determinísticas.

Função

Determinismo

APP_NAME

Não-determinística

Expressão CASE

Determinística

CAST e CONVERT

Determinística a menos que usado com datetime, smalldatetime ou sql_variant.

COALESCE

Determinística

COLLATIONPROPERTY

Não-determinística

COLUMNS_UPDATED

Não-determinística

CURRENT_TIMESTAMP

Não-determinística

CURRENT_USER

Não-determinística

DATALENGTH

Determinística

@@ERROR

Não-determinística

ERROR_LINE

Não-determinística

ERROR_MESSAGE

Não-determinística

ERROR_NUMBER

Não-determinística

ERROR_PROCEDURE

Não-determinística

ERROR_SEVERITY

Não-determinística

ERROR_STATE (Transact-SQL)

Não-determinística

fn_helpcollations

Determinística

fn_servershareddrives

Não-determinística

fn_virtualfilestats

Não-determinística

FORMATMESSAGE

Não-determinística

GETANSINULL

Não-determinística

HOST_ID

Não-determinística

HOST_NAME

Não-determinística

IDENT_CURRENT

Não-determinística

IDENT_INCR

Não-determinística

IDENT_SEED

Não-determinística

@@IDENTITY

Não-determinística

IDENTITY (Função)

Não-determinística

ISDATE

Não-determinística

ISNULL

Determinística

ISNUMERIC

Determinística

NEWID

Não-determinística

NULLIF

Determinística

PARSENAME

Determinística

ORIGINAL_LOGIN

Não-determinística

@@ROWCOUNT

Não-determinística

ROWCOUNT_BIG

Não-determinística

SCOPE_IDENTITY

Não-determinística

SERVERPROPERTY

Não-determinística

SESSIONPROPERTY

Não-determinística

SESSION_USER

Não-determinística

STATS_DATE

Não-determinística

sys.dm_db_index_physical_stats (Transact-SQL)

Não-determinística

SYSTEM_USER

Não-determinística

@@TRANCOUNT

Não-determinística

UPDATE()

Não-determinística

USER_NAME

Não-determinística

XACT_STATE

Não-determinística

Consulte também

Referência