SQLSERVER内部函数汇总
2006-04-13 23:06:31 来源:WEB开发网核心提示:SQLSERVER内部函数汇总:select @@CONNECTIONSselect @@CURSOR_ROWSselect @@DATEFIRSTSELECT @@DBTSselect @@ERRORselect @@rowcountselect @@FETCH_STATUSSELECT @@CPU_BUSY AS
SQLSERVER内部函数汇总:
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
内部变量:
APP_NAME IDENTITY (Function)
CASE ISDATE
CAST and CONVERT ISNULL
COALESCE ISNUMERIC
CURRENT_TIMESTAMP NEWID
CURRENT_USER NULLIF
DATALENGTH PARSENAME
@@ERROR PERMISSIONS
FORMATMESSAGE @@ROWCOUNT
GETANSINULL SESSION_USER
HOST_ID STATS_DATE
HOST_NAME SYSTEM_USER
IDENT_INCR @@TRANCOUNT
IDENT_SEED USER_NAME
@@IDENTITY
[]
- ››SQLServer 游标简介与使用说明
- ››函数式编程(javascirpt)
- ››函数式JavaScript编程指南
- ››sqlserver游标概念与实例全面解说
- ››SqlServer性能优化——Slide Window
- ››SqlServer性能优化:Partition(创建分区)
- ››SqlServer性能优化:Partition(管理分区)
- ››SQLServer2005中的uniqueidentifier数据类型与NEW...
- ››SQLServer 2005 常用的函数
- ››SqlServer的timestamp数据类型
- ››sqlserver动态交叉表的范例
- ››SQLServer索引调优实践
更多精彩
赞助商链接