Quantcast
Channel: SQL Fascination » SQL Server 2008
Browsing all 31 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

When is MaxDop not MaxDop?

MaxDop is in some sense a bit of a misnomer, in that you would think ‘Max Degree of Parallelism’, set by the system administrator would be the last and final word on the matter; That is your maximum,...

View Article


Image may be NSFW.
Clik here to view.

How to Remember the Next Used Filegroup in a Partition Scheme

Within SQL, the partitioned table feature provides an excellent way to store and roll forward data windows across large datasets without incurring huge loading and archiving penalties to the main...

View Article


Image may be NSFW.
Clik here to view.

Do Filtered Index Have Different Tipping Points?

I’ve been taking a look at filtered indexes and they do initially look particularly useful, but I was wandering what effect the filtered index has on the tipping point. The tipping point was described...

View Article

Image may be NSFW.
Clik here to view.

Finding Next Identity Value, and a Wild Goose Chase.

A question asked on stack overflow was to find the next identity value that would occur on a table, without being required to add a record to work it out. The problem lies in that if the highest row is...

View Article

Image may be NSFW.
Clik here to view.

What is the SQL Server 2008 DateTime2 Internal Structure?

SQL Server has a number of new date time formats, but the one I am most interested in is DateTime2. The internal format of the SQL DateTime is commonly mistaken as 2×4 byte integers, with the latter...

View Article


Image may be NSFW.
Clik here to view.

What is the SQL Server 2008 DateTimeOffset Internal Structure?

After decoding the DateTime2 internal structure I thought I would take a quick look at the DateTimeOffset structure, since it should not present too many difficulties and post it up quickly, but was...

View Article

Image may be NSFW.
Clik here to view.

Guidance on How to Layout a Partitioned Table across Filegroups

SQL Server’s Table Partitioning was one of my favourite features within the 2005 release. It really brought SQL into the mainstream when it came to holding very large data quantities and allowed us to...

View Article

Image may be NSFW.
Clik here to view.

When is Bulk Logged Mode Not What it Says?

Somewhat of a ‘doh’ moment when dealing with a SQL server in bulk logged mode, the transaction log was behaving very weirdly and growing very large for smaller index operations. When performing an...

View Article


Image may be NSFW.
Clik here to view.

Can a Covering NC Index be Tipped?

Non-clustered indexes normally have a ‘tipping point’, which is the point at which the query engine decides to change strategies from seeking the index with a nested loop operator back to a seek on the...

View Article


Image may be NSFW.
Clik here to view.

Inconsistent Date Literal Parameterization Behaviour

I have mentioned query parameterization before and the process by which SQL extracts literal values from a query and re-writes the query in effect to use parameters to get a query plan cache hit, which...

View Article

Image may be NSFW.
Clik here to view.

Prodata SQL Academy Events

If you haven’t seen them advertised, Bob Duffy from Prodata is running a series of SQL Academy half day training session in Dublin, hosted at the Microsoft Auditorium in their offices in Leopardstown –...

View Article

Image may be NSFW.
Clik here to view.

How Can You Spot the Procedure Cache Being Flooded?

This comes from a question I had a couple of days ago – the SQL Server: Buffer Manager : Page Life Expectancy provides a performance counter that indicates the current lifetime of a page within memory....

View Article

Image may be NSFW.
Clik here to view.

Rolling a Partition Forward – Part 1

I have covered how to layout a partitioned table across filegroups previously, but have not gone through the steps of rolling a partitioned window – it sounds a simple process but with all the file...

View Article


Image may be NSFW.
Clik here to view.

Rolling a Partition Forward – Part 2

The first part of this topic provided a mini-guide to loading data into a partitioned table and a few helpful DMV based statements that can help you automate the process. The unloading of the data...

View Article

Image may be NSFW.
Clik here to view.

How Can You Tell if a Database is in Pseudo Full/Bulk Logged Mode?

I was asked on Friday, “how do you tell if a database logging mode is reporting bulk or full, but it is still in simple?” – as mentioned before, a database is not in really full / bulk logged unless a...

View Article


Image may be NSFW.
Clik here to view.

Is Dynamic Partitioning in SQL Server Possible?

I often see people asking whether dynamic table partitioning exists in SQL Server, or they provide a scenario that would effectively be asking the same question. So let’s get the easy answer out now –...

View Article

Image may be NSFW.
Clik here to view.

Dynamic Partitioning : Wishlist

Whilst I consider dynamic partitioning something that really doesn’t serve a valid purpose that I can find yet, I decided to use it as an exercise to program a basic form of it within T-SQL over the...

View Article


Image may be NSFW.
Clik here to view.

Dynamic Partitioning : What objects are using a Partition Schema? (SQL...

As part of the look at dynamic partitioning one of the first problems I have come across is finding what objects are currently placing data within a partition schema, this can be both tables as well as...

View Article

Image may be NSFW.
Clik here to view.

Case Sensitivity in the Query Plan Cache

A surprising facet of the query plan cache is that it matches ad-hoc queries not only on their text, but the case of the query text must exactly match as well. This is documented quite clearly on MSDN...

View Article

Image may be NSFW.
Clik here to view.

Why Are Date Tricks in SQL 2005 a Problem in Waiting?

One of the long time annoyances about the Date functions in SQL is that a number of them do not function as developer would wish, the prime example I’m going to focus on is the DateDiff function. The...

View Article
Browsing all 31 articles
Browse latest View live


Latest Images