SQL SERVER内部函数是SQL数据库中非常重要的一类函数,下面就为您介绍SQL SERVER内部函数,如果您对此方面感兴趣的话,不妨一看。
SQL SERVER内部函数:
select @@CONNECTIONS
select @@CURSOR_ROWS
select @@DATEFIRST
SELECT @@DBTS
select @@ERROR
select @@rowcount
select @@FETCH_STATUS
SELECT @@CPU_BUSY AS 'CPU ms', GETDATE() AS 'As of'
sELECT @@IDENTITY AS 'Identity'
sELECT @@IDLE AS 'Idle ms', GETDATE() AS 'As of'
SELECT @@IO_BUSY AS 'IO ms', GETDATE() AS 'As of'
SELECT @@LANGID AS 'Language ID'
SELECT @@LANGUAGE AS 'Language Name'
SELECT @@LOCK_TIMEOUT
SELECT @@MAX_CONNECTIONS
SELECT @@MAX_PRECISION
select @@NESTLEVEL AS 'Inner Level'
select @@OPTIONS
SELECT @@PACKET_ERRORS
SELECT @@PACK_RECEIVED
SELECT @@PACK_SENT
SELECT @@PROCID AS 'ProcID'
SELECT @@REMSERVER
SELECT @@SERVERNAME
SELECT @@SERVICENAME
SELECT @@SPID
SELECT @@TEXTSIZE
SET TEXTSIZE 2048
SELECT @@TEXTSIZE
SELECT @@TIMETICKS
SELECT @@TOTAL_ERRORS AS 'Errors', GETDATE() AS 'As of'
SELECT @@TOTAL_READ AS 'Reads', @@TOTAL_WRITE AS 'Writes', GETDATE() AS 'As of'
SELECT @@TOTAL_READ AS 'Reads', @@TOTAL_WRITE AS 'Writes', GETDATE() AS 'As of'
select @@TRANCOUNT
SELECT @@VERSION
select @@FETCH_STATUS
【编辑推荐】