谁动了我的buffer pool
我在做SQL Server 7.0技术支持的时候有客户问我,“我的SQL Server buffer pool很大,有办法知道是哪些对象吃掉我的buffer Pool内存么?比方说,能否知道是哪个数据库,哪个表,哪个index占用了buffer Pool么?”当时我没有找到这个问题的答案,但是我一直记着这个问题。直到SQL server 2005 版本出现,这个问题迎刃而解。答案就是使用动态视图(DMV) sys.dm_os_buffer_descriptors。[@more@]这个DMV非常强大。根据SQL Server 联机丛书,这个视图的作用是 “返回有关 SQL Server 缓冲池中当前所有数据页的信息。可以使用该视图的输出,根据
大型网站架构演变和知识体系
之前也有一些介绍大型网站架构演变的文章,例如LiveJournal的、ebay的,都是非常值得参考的,不过感觉他们讲的更多的是每次演变的结果,而没有很详细的讲为什么需要做这样的演变,再加上近来感觉有不少同学都很难明白为什么一个网站需要那么复杂的技术,于是有了写这篇文章的想法,在这篇文章中 将阐述一个普通的网站发展成大型网站过程中的一种较为典型的架构演变历程和所需掌握的知识体系,希望能给想从事互联网行业的同学一点初步的概念,:),文中的不对之处也请各位多给点建议,让本文真正起到抛砖引玉的效果。[@more@]架构演变第一步
SQL 记录数据库连接数信息
从master.dbo.sysprocesses取连接数信息并记录的SQL。[@more@]-- create connection_logcreate table connection_log( time datetime, date datetime, hour int, minute int, second int, dbname varchar(56), connect_count int)-- catch dataset nocount ondeclare @v_time datetimewhile 1=1begin select @v_time = GETDATE() select @v_time as time, convert(varchar(10), @v_time, 120) as date, DATEPART(hour, @v_time) as hour, DATEPART(minute, @v_time) as minute, DATEPART(second, @v_time) as second, DB_NAME(dbid)
Troubleshooting: SQL Server连接错误解决方法列表
SQL Server连接错误解决方法列表[@more@]1. Connection Forcibly ClosedThis error may occur when connecting to SQL Server using TCP/IP.Error message:A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)Related cause and solution:(1). SynAttackProtectSQL Server Database Engine running on Windows Server 2003 Service Pack 1 and later, Windows may drop connections if the requests ar
关闭默认 SNP 功能 - An existing connection was forcibly closed by the remote host问题处理
症状有 TCP/IP Offload - 启用网络适配器, 计算机上安装 Windows Server 2003 Service Pack 2 (SP 2) 或 Windows Server 2003 可伸缩网络包 (SNP) 后可能会遇到许多网络相关问题。Windows Server 2003 SNP 打开时可能会出现下列问题: •当您尝试通过使用 VPN 连接, 连接到服务器收到以下错误信息: 错误 800: 无法建立连接。•无法创建远程桌面协议 (RDP) 连接到服务器。•无法从本地区域网络上计算机连接到服务器上共享。 •客户机无法加入到域。•无法从计算机正在运行 MicrosoftOutlook 连接到 Exchange 服