T - SQL 의 전역 변수
11204 단어 T - SQL 프로 그래 밍
select APP_NAME ( ) as w --
select @@ERROR -- Transact-SQL (integer)( , 0)
select @@IDENTITY --
select USER_NAME() --
select @@CONNECTIONS -- SQL 。
select GETDATE() --
select @@CPU_BUSY/100 -- SQL CPU ,
USE tempdb select @@DBTS as w -- timestamp 。 timestamp 。
select @@IDLE as w -- SQL ,
select @@IO_BUSY AS w -- SQL ,
select @@LANGID AS w -- (ID)
select @@LANGUAGE AS w --
select @@LOCK_TIMEOUT as w -- , 。
select @@MAX_CONNECTIONS as w -- SQL 。
EXEC sp_configure --
select @@MAX_PRECISION as w -- decimal numeric , 。 38。
select @@OPTIONS as w -- SET 。
select @@PACK_RECEIVED as w -- SQL 。
select @@PACK_SENT as w -- SQ 。
select @@PACKET_ERRORS as w -- SQL , SQL 。
select @@SERVERNAME as w -- SQL 。
select @@SERVICENAME as w -- SQL
select @@TIMETICKS as w -- SQL
select @@TOTAL_ERRORS AS w -- SQL , / 。
select @@TOTAL_READ as w -- SQL 。
select @@TOTAL_WRITE as w -- SQL 。
select @@TRANCOUNT as w -- 。
select @@VERSION as w -- SQL 、 。