随笔分类 - 系统视图、函数
摘要:dbcc page ( {'dbname' | dbid}, filenum, pagenum [, printopt={0|1|2|3} ]) The printopt parameter has the following meanings: 0 - print just the page he
阅读全文
摘要:DBCC IND 命令用于查询一个存储对象的内部存储结构信息,该命令有4个参数, 前3个参数必须指定。语法如下: DBCC IND ( { 'dbname' | dbid }, { 'objname' | objid },{ nonclustered indid | 1 | 0 | -1 | -2
阅读全文
摘要:declare @bin varbinary(100) = 0xAF430B declare @tab table(col varchar(100) collate latin1_general_bin) insert @tab values(@bin) select cast(REVERSE(co
阅读全文
摘要:分隔标识符 查看指定会话 quoted_identifier 是开启还是关闭状态: 1 select quoted_identifier 2 from sys.dm_exec_sessions 3 where session_id = @@SPID --查看当前会话 设置当前会话的 quoted_i
阅读全文