05 2014 档案
摘要:his topic provides procedures and recommendations to help you diagnose and troubleshoot problems caused by insufficient disk space in thetempdb databa...
阅读全文
摘要:You can use the sys.dm_db_file_space_usage dynamic management view to monitor the spaced used bytempdbfor storing user/internal objects and version st...
阅读全文
摘要:I am a fangirl ofAdam Machanic‘s sp_whoisactive stored procedure.Be prepared. When things go wrong, you want to focus on the problem itself. Make a pl...
阅读全文
摘要:The other day I ran into a question on msdn:Tempdb Deallocation (dm_db_session_space_usage). A person with the pseudonym DontPageMeBro noticed an odd ...
阅读全文
摘要:A little more than a year ago while working atIdera, I was consulted on reports from a few clients using the Idera monitoring toolSQL diagnostic manag...
阅读全文
摘要:Prefetch is a mechanism with which SQL Server can fire up many I/O requests in parallel for Nested Loop join.The SAN administrator says your data volu...
阅读全文
摘要:IntroductionPrefetching is often ignored by developers and DBAs when they are analyzing performance problems. After you’ve read this article I hope yo...
阅读全文
摘要:Reading Pageshttp://technet.microsoft.com/en-us/library/ms191475(v=sql.105).aspxHeap Structureshttp://technet.microsoft.com/en-us/library/ms188270(v=s...
阅读全文
摘要:Create function to check SQL instance CPU loadcreate function check_cpu_load ()returns tableasreturn(SELECT SQLProcessUtilization, 100 - S...
阅读全文
摘要:Key points about SQL Server buffer pool:1,A buffer is an 8-KB page in memory, the same size as a data or index page. Each cached data page has one buf...
阅读全文
摘要:Before we get started on this topic, here is a quick fact..in SQL Server 2000, there used to be hard limit on the data that can be stored in a single ...
阅读全文
摘要:These two can be seen as a scalar function return different values ??in different rows.The following description of the test environment are as follow...
阅读全文
摘要:Fromhttp://scarydba.wordpress.com/2010/03/18/undocumented-virtual-column-lockres/One of my development teams needed a mechanism for identifying the va...
阅读全文
摘要:Every statement executed against SQL Server is transactional, and SQL Server implements various transaction isolation levels, to ensure the ACID (Atom...
阅读全文
摘要:In fact, the most important storage structure of the database objects to the two SQLServer support system view, that sys.partitions and the sys.alloca...
阅读全文
摘要:fromhttp://www.sqlteam.com/article/introduction-to-locking-in-sql-serverLocking is a major part of every RDBMS and is important to know about. It is a...
阅读全文
摘要:from http://beyondrelational.com/modules/2/blogs/59/posts/13693/sql-server-storage-internals-part-2-partitions-and-allocation-units.aspxBefore moving ...
阅读全文
摘要:转自http://www.cnblogs.com/CareySon/p/3195276.html在SQL Server中,利用日志的WAL来保证关系数据库的持久性,但由于硬盘的特性,不可能使得每生成一条日志,就 直接向磁盘写一次,因此日志会被缓存起来,到一定数据量才会写入磁盘。这部分已经生成的,却没...
阅读全文
摘要:sp_helptext显示规则、默认值、未加密的存储过程、用户定义函数、触发器或视图的文本。 语法sp_helptext [ @objname = ] 'name' 参数[@objname =] 'name' 对象的名称,将显示该对象的定义信息。对象必须在当前数据库中。name 的数据类型为 nva...
阅读全文
摘要:fromhttp://beyondrelational.com/modules/2/blogs/28/posts/10279/xquery-labs-a-collection-of-xquery-sample-scripts.aspxI have always experienced and am ...
阅读全文
摘要:Yesterday’s post,Targets Week - ring_buffer, looked at the ring_buffer Target in Extended Events and how it outputs the raw Event data in an XML docum...
阅读全文
摘要:Yesterday’s post,Querying the Session Definition and Active Session DMV’s, showed how to find information about the Event Sessions that exist inside a...
阅读全文
摘要:Yesterdays post,Managing Event Sessions, showed how to manage Event Sessions in Extended Events Sessions inside the Extended Events framework in SQL S...
阅读全文
摘要:Yesterdays post,Querying the Extended Events Metadata, showed how to discover the objects available for use in Extended Events. In todays post, we’ll ...
阅读全文
摘要:In yesterdays post,An Overview of Extended Events, I provided some of the necessary background for Extended Events that you need to understand to begi...
阅读全文
摘要:First introduced in SQL Server 2008, Extended Events provided a new mechanism for capturing information about events inside the Database Engine that w...
阅读全文
摘要:Locking is a familiar concept to anyone working with SQL Server. However, when a process holds locks for a long period of time, other processes can be...
阅读全文
摘要:I was positively surprised to see how popular my recent listingabout10 Common Mistakes Java Developers Make when Writing SQLwas, bothon my own blogand...
阅读全文
摘要:The LIKE-clause can ignore indexes, causing queries to run forever while doing full table scans. This document describes how to tune such SQL statemen...
阅读全文
摘要:IntroductionSQL Server Like Clause – Another path to helping SQL Server use our Index.BackgroundMicrosoft – SQL Server – Query Likehttp://danieladenij...
阅读全文
摘要:IntroductionSQL Server Like Clause – Another path to helping SQL Server use our Index.BackgroundMicrosoft – SQL Server – Query Likehttp://danieladenij...
阅读全文
摘要:IntroductionThis is a short follow-up to our last discussion on SQL Server optimization path when it processes SQL Like Clause.BTW, the URL to that di...
阅读全文
摘要:IntroductionIn Database Applications, the SQL Clause (like) is often used to match on partial terms. The Application developer can allow end-users to ...
阅读全文
摘要:Most of you must have come across the pain of adding a not null column with a default value to an existing big table. It takes minutes to add columns....
阅读全文
摘要:This month's T-SQL Tuesday is being run by fellow-MVP Sankar Reddy (blog|twitter) and the topic is aboutMisconceptions in SQL Server.(Check out the 60...
阅读全文
摘要:Back in April, Paul Randal (Blog|Twitter) did a 30 day series titledA SQL Server Myth a Day, where he covered a different myth about SQL Server every ...
阅读全文
摘要:Oracle has supported stored expressions for many years, in views and function-based indexes. Most commonly, views enable us to store and modularise co...
阅读全文
摘要:ProblemIf you're one of the lucky ones, you or your company has the ability to purchase third party software to monitor the health of your database sy...
阅读全文