[tips]SQL 2005 AND 2008
2010-05-26 08:52
295 查看
本篇文章将会持续更新,是08年一个帖子([tips]T_SQL @ 2000 AND 2005)的更新
主要是比较难找了,而且工作中发现有一些有趣的tips记录下来,方便以后查找。
====================May/26/2010============================
获取数据库服务器的当前的链接session信息,侧重于sql方面的一些信息
select*from sys.dm_exec_sessions
where is_user_process =1
获取数据库服务器当前连接的信息,侧重于网络信息
select*from sys.dm_exec_connections
====================Aug/24/2012============================
paging based on row_number of SQL Server
主要是比较难找了,而且工作中发现有一些有趣的tips记录下来,方便以后查找。
====================May/26/2010============================
获取数据库服务器的当前的链接session信息,侧重于sql方面的一些信息
select*from sys.dm_exec_sessions
where is_user_process =1
获取数据库服务器当前连接的信息,侧重于网络信息
select*from sys.dm_exec_connections
====================Aug/24/2012============================
paging based on row_number of SQL Server
declare @p0 int, @p1 int set @p0=1000 set @p1=100; With ct As ( Select ROW_NUMBER() Over (Order By column0) As Row, column0 From table0 --where column1= 'key word' ) Select [t0].[column0], [t0].[column1], [t0].[column2], [t0].[column3], [t0].[column4] From ct c Inner Join table0 t0 on c.column0 = t0.column0 Where c.Row Between @p0 + 1 AND @p0 + @p1 Order By c.Row Asc
相关文章推荐
- SQL 2005 Tips --事务处理The current transaction cannot be committed and cannot support operations that write to the log file
- A Developer's Guide to Data Modeling for SQL Server: Covering SQL Server 2005 and 2008
- Index Fragmentation Report in SQL Server 2005 and 2008
- Index Fragmentation Report in SQL Server 2005 and 2008
- Beginning T-SQL with Microsoft SQL Server 2005 and 2008
- Give the New PIVOT and UNPIVOT Commands in SQL Server 2005 a Whirl
- SQL 2005中char、nchar、varchar、ntext and nvarchar(max)的区别
- Microsoft SQL Server 2005 and Vs.net 2005 April 2005 Version
- Professional ADO.NET 2: Programming with SQL Server 2005, Oracle, and MySQL by Wallace B. McClure
- sql server 2005/2008 设置 sql身份验证 和 sa空密码(像sql2000一样使用)(转载)
- MCTS: Microsoft SQL Server 2005 Implementation and Maintenance Study Guide: Exam 70-431
- 《Microsoft Sql server 2008 Internals》读书笔记--第六章Indexes:Internals and Management(8)
- Visual C# 2008+SQL Server 2005 数据库与网络开发--4.5.2 使用SQL创建视图
- Visual C# 2008+SQL Server 2005 数据库与网络开发--第5章 T-SQL进阶
- 安装SQL 2005/2008“性能计数器注册表配置单元一致性”失败的解决办法
- 使用SqlDependency监测SQL Server 2005/2008字段改动时的SQL语法及相关注意事项
- 《Microsoft Sql server 2008 Internals》读书笔记--第六章Indexes:Internals and Management(6)
- SQL Server6.0、6.5、7.0、SQL 2000 2005 2008 2012 2014话说版本号
- sql 2005 sql 2008 导出数据字典方法
- Hello My C# and SQLExpress 2005