22 August 2007
22 August 2007

Performance: Caching vs. Reading from an In-Memory XML Document

0
0
I’ve been working with a number of XML documents recently.  Basically I’m trying to expose configuration values stored in XML configuration files in an object-oriented structure.  I’m using an in-memory XML document and just referencing values as needed from that document.  The XML reading does not need to be super-high performance because it does not … Read more
16 August 2007
16 August 2007

ADFS – Cookie Error

0
2
I’ve been knee deep in Active Directory Federation Services for the past three months now, and when helping one our clients deploy a single-sign-on (SSO) application, we ran into a nasty error: The request has been rejected because it appears to be a duplicate of a request from this same client browser session within the … Read more
10 August 2007
10 August 2007

DBAs and the moral dilemma

0
0
DBAs are often put in a difficult moral position in the course of doing their work because they have a uniquely privileged access to corporate data. The ridiculous stories that have recently been put about by security firms concerning the dishonesty of DBAs miss the point entirely. In twenty years of work in the database … Read more
06 August 2007
06 August 2007

sys.dm_exec_query_optimizer_info

0
0
Information about how queries have been optimized since the server has been restarted. Note that counters are only affected when there is some sort of optimization event, not on every query. Type: View Data: Accumulating reset at restart Columns: counter – Name of the query occurrence – Number of times the counter was recorded to … Read more
03 August 2007
03 August 2007

Say hello, static constructor?

0
0
When does the static constructor of your .NET class actually get called? Sounds like it should be pretty obvious really – at least going on the side of “how late can it possibly be called”. Most of us are used to the idea that static constructors are called before any other methods on that class … Read more
27 July 2007
27 July 2007

sys.dm_io_virtual_file_stats

0
1
Excellent dmv that shows, for each file that SQL Server uses for the databases, stats on how frequently the file has been used by the database. This is one of the primary dynamic management views I use almost daily (well, not usually when I am on vacation, but even sometimes then!)  The file can be … Read more
26 July 2007
26 July 2007

**SQL Prompt 3.5 Released**

0
0
Well, this is it, it’s finally out there. Download it from http://www.red-gate.com/products/SQL_Prompt/index.htm Improvements include: Visual Studio 2005 database project support Cross database queries Distributed queries across linked SQL Server instances Correlated subqueries 3 – 5 times faster metadata retrieval Large script support 40 – 95% decrease in memory footprint And plenty more. I’ll be carrying … Read more
25 July 2007
25 July 2007

The Interview with the Psychometric Test

0
0
I knew there would be trouble the moment she walked in the room. Like many IT people, I have an instinctive aversion to HR people. She looked briskly at me and waddled importantly to the desk. I’d come for an interview with a firm in Cambridge running an IT consultancy from an office quite near where … Read more
22 July 2007
22 July 2007

sys.dm_db_index_usage_stats

0
1
This object gives statistics on how an index has been used to resolve queries. Most importantly it tells you the number of times a query was used to find a single row (user_seeks), a range of values, or to resolve a non-unique query (user_scans ), if it has been used to resolve a bookmark lookup … Read more
20 July 2007
20 July 2007

Visual Studio 2005 Support in SQL Prompt 3.5

0
0
Well it’s taken me slightly longer to get around to writing this than originally planned, however… Visual Studio 2005 support, along with cross-database/linked server support was one of our top two requested features for SQL Prompt 3.5. It got to the point where not a day would go past without somebody emailing sales or support … Read more
14 July 2007
14 July 2007

sys.dm_db_file_space_usage

0
0
Give space usage of objects in tempdb (most likely this will be extended to more than just tempdb in a future edition of SQL Server.) Can be used to see how and why space is being used in Tempdb, on a file by file basis. Type: View Data: temporal, reflects the current state of the … Read more
12 July 2007
12 July 2007

Beware ye of ancient columns

0
0
I’m sure you all make changes to your schema over time adding columns to tables and occassionally dropping them. But were you aware that even though you drop a column from a table the space in the row continues to be taken up by the ghost of the column that you deleted. So if you … Read more
11 July 2007
11 July 2007

sys.dm_db_partition_stats

0
1
For the current database, gives you space oriented statistics for each partition of indexes (even if you only have one partion), like row count, page counts, etc. Resembles the sysindexes in previous versions of SQL Server, with more information. Type: view Data: accumulating, refreshed at server restart Scope: Reset on server restart (or object/partition drop … Read more
10 July 2007
10 July 2007

Blogging the DMV’s

0
0
Well, I am working on a project that is going to be a book on dynamic management views (and functions, but DMF is an interesting acronym, and objects, as in DMO, has a well known other meaning.  What I will post will be one object in the following format: Name of object Type: Function or … Read more
29 June 2007
29 June 2007

Love amongst the computers

0
0
I love to go around junk shops and second hand bookshops looking for quirky second-hand books. It was whilst browsing through all the more dog-eared fiction (always a sign that the contents are good), I once came across a book of romantic fiction. I wish now that I’d bought it, because I have, unfortunately, to relate its … Read more