Sign in
MSDN Blogs
Microsoft Blog Images
More ...
Browse by Tags
Search
Archives
Archives
January 2013
(1)
December 2012
(1)
November 2012
(4)
October 2012
(5)
September 2012
(4)
July 2012
(13)
June 2012
(7)
May 2012
(3)
April 2012
(2)
March 2012
(2)
February 2012
(8)
January 2012
(8)
December 2011
(14)
November 2011
(7)
October 2011
(5)
September 2011
(3)
August 2010
(1)
July 2010
(3)
June 2010
(4)
May 2010
(4)
May 2008
(1)
February 2008
(6)
January 2008
(3)
December 2007
(25)
November 2007
(14)
Tags
Analysis Services
Connectivity
Database Mirroring
DBCC Commands
Enterprise Edition
Extended Events
General Info
Management Studio
Memory
Performance
Programmability
Query Optimization
Relational Engine
Replication
Reporting Services
SQL Agent
SQL Server
SQL Setup
SSIS
Storage Engine
Tidbits
Tools
Trace Flags
Visual Database Tools
Waittypes
Common Tasks
Blog Home
About
RSS for posts
RSS for comments
Tagged Content List
Blog Post:
How to set the default transaction isolation level server wide?
Nacho Alonso Portillo
Last week I was involved in a discussion about the default transaction isolation level used by the transaction objects in WCF’s services (Serializable) versus the one used by the transaction objects in Entity Framework for SQL Server (ReadCommitted) whose details I’m not going to cover in this post....
on
26 Nov 2012
Blog Post:
Even if some client tools in SQL seem to be forward compatible with later versions, you may be missing something important
Nacho Alonso Portillo
Today, a colleague exposed the following case: In the execution plan I do see some exclamatory marks on Sort, Hash Joins operators but there is no warning information available. I am using SQL Server 2012. How do I interpret the exclamatory marks? Here goes my explanation...
on
15 Nov 2012
Blog Post:
Are you one of those rare birds whom, while running batches that involve distributed queries, have encountered any of the following errors?
Nacho Alonso Portillo
3988 - New transaction is not allowed because there are other threads running in the session. 3930 - The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction. If so, I would appreaciate you send me an email to ialonso@microsoft...
on
8 Nov 2012
Blog Post:
FAQ around sys.dm_db_index_usage_stats
Nacho Alonso Portillo
For those of you who may not be familiarized with this object, sys.dm_db_index_usage_stats is one of the many Dynamic Management Views built into SQL Server. This one specifically falls into the category index related DMVs , and it returns counts of different types (scans, seeks, and lookups) of index...
on
8 Oct 2012
Blog Post:
What’s the maximum level of recursion for the hash iterator before forcing bail-out?
Nacho Alonso Portillo
This is a question I was asked recently whose answer I had to look in the code because it wasn’t documented anywhere. So, I’ll use this mean to propagate that piece of knowledge. The value is a constant, hard coded in the product, and its value is five (5). This means that before the hash scan operator...
on
5 Sep 2012
Blog Post:
Who, ME, an almighty Sysadmin getting a permission denied error?
Nacho Alonso Portillo
This is the story of someone who claimed to be a member of the sysadmin fixed server role and, when he tried to run one stored procedure through a session in which any of the different settings that instruct the relational engine that the user is interested in retrieving the execution plan in one of...
on
26 Jul 2012
Blog Post:
Where is the table cardinality taken from when that information doesn’t match in the different statistics associated to an object?
Nacho Alonso Portillo
My colleague Tony O’Grady asked last week the following question, which I think is interesting to share here. <MESSAGE> I have been testing working with an export of statistics when performance tuning and have come across the following scenario: Exported statistics (histogram) and table definition...
on
7 Jul 2012
Blog Post:
About the transaction-level snapshot "start" time (for statement reconciliation)
Nacho Alonso Portillo
A few days ago I received an email from my good friend Kimberly telling me about an interesting discussion she was having with the attendees of one week of training sessions herself and other members from the SQL Skills Superb Gang were delivering in the UK to a group of SQL Server professionals who...
on
20 Jun 2012
Blog Post:
How does sys.dm_server_memory_dumps work in SQL Server 2008 R2?
Nacho Alonso Portillo
It uses FindFirstFile and FindNextFile to enumerate the files matching a pattern like this: C:\Program Files (x86)\Microsoft SQL Server\MSSQL10_50.KILIMANJAROX86\MSSQL\LOG\SQLDump*.mdmp* For each file found, it retrieves its full physical path, name, and extension, its creation time, and its size in...
on
19 Jun 2012
Blog Post:
What does the DTC Calls performance counter from the Exec Statistics object accounts for?
Nacho Alonso Portillo
I came across the following question today: “sys.dm_os_performance_counters has a counter name called ‘DTC calls’, we have been monitoring this counter on sql servers where MSDTC is set up and linked servers are in use. We find the cntr_value is always 0. Is this counter accurate? Where do I find information...
on
19 Jun 2012
Blog Post:
How the density and distribution of data in the leading key column of an index affects the degree of parallelism chosen for index operations targeting that index?
Nacho Alonso Portillo
There’s a topic in SQL Server’s documentation whose title is Configuring Parallel Index Operations , which mentions that the Database Engine can reduce the degree of parallelism if the leading key column of a non-partitioned index has a limited number of distinct values or the frequency of each distinct...
on
30 May 2012
Blog Post:
The seven reasons why Auto Update Stats event will not trigger despite how many modifications affect any of the tables involved in a compiled plan?
Nacho Alonso Portillo
A colleague from PFE recently asked the following: ****************************** Hi Folks, I’m trying to find out when the Auto Update Stats event is generated assuming Auto Update Stats and Auto Create Stats db options are enabled. As far as I know the stats should be invalidated when the recompilation...
on
4 May 2012
Blog Post:
How the query execution engine calculates the threshold it uses to detect inaccurate cardinality estimation and fire the inaccurate_cardinality_estimate extended event?
Nacho Alonso Portillo
Starting with SQL Server 2012, the query engine folks introduced an extended event, inaccurate_cardinality_estimate, you can use to identify those running queries for which any of its iterators outputs significantly more rows than those estimated by the Query Optimizer. To be more precise, it is not...
on
16 Apr 2012
Blog Post:
ALTER TABLE SWITCH fails with 4947 even when all the publicly exposed metadata for the indexes in source and target tables perfectly match
Nacho Alonso Portillo
A colleague who is a consultant in Chile, reported a weird scenario he was observing in one customer and for which he couldn’t articulate an explanation. I saw his question posted in one of our internal distribution lists but couldn’t put any work on it at the time because I didn’t...
on
7 Feb 2012
Blog Post:
Duration of schema locks for certain DML operations might not work as expected
Nacho Alonso Portillo
John Huang , a colleague from the MCM community , recently exposed to the rest of us a weird case which he decided to present as an “Interesting blocking issue”. I don’t know the exact details of what he was trying to implement, but basically, he had a main table (tBase in his simplified repro) in which...
on
23 Jan 2012
Blog Post:
Expected behavior of INSERT into views with Instead Of Insert Triggers
Nacho Alonso Portillo
The INSTEAD OF INSERT Triggers topic in the documentation describes the following: An INSERT statement that is referencing a view that has an INSTEAD OF INSERT trigger must supply values for every view column that does not allow nulls . This includes view columns that reference columns in the base table...
on
22 Jan 2012
Blog Post:
Why is the column named “Microsoft SQL Server 2005 XML Showplan” despite the version producing it is not 2005?
Nacho Alonso Portillo
This is something many users point out as a defect, but which is not. It is the fact that despite the version of SQL Server you are using, the column produced by SET SHOWPLAN_XML or SET STATISTICS XML containing the query plan, is named “Microsoft SQL Server 2005 XML Showplan”. Well...
on
21 Dec 2011
Blog Post:
Clicking on the XML link containing a query plan doesn’t display the graphical plan but opens the XML editor instead
Nacho Alonso Portillo
Recent Note: SQL Server 2008 R2 Service Pack 1 Cumulative Update 4 (10.50.2796.0) is the first build servicing showplanxml.xsd with the updated version. So, install that CU to get rid of this problem. Last week, while working with a customer in the optimization of some of his queries, he raised to my...
on
19 Dec 2011
Blog Post:
What is the expected behavior from an attempt to enable a trace flag which is not defined in the targeted version of the product?
Nacho Alonso Portillo
Imagine, for example, that you run DBCC TRACEON(1117, -1) to globally enable trace flag 1117 on an instance of SQL Server 2005, where it had no effect because nowhere in the Database Engine’s code honored such flag. We could then say trace flag 1117 was in a “reserved for future use”...
on
5 Dec 2011
Blog Post:
What on Earth is causing this “Incorrect Syntax near ‘)’” error?
Nacho Alonso Portillo
A colleague of mine exposed, a few days ago, a situation where his customer had some scripts they ran successfully against a SQL Server 2008 R2 instance they had in production. No errors there… happy and easy life. One day they decided to run those scripts also in a test server for a different platform...
on
4 Dec 2011
Page 1 of 1 (20 items)