Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » T-SQL Tips and Tricks   (RSS)

Some Uses for Query Hints

Some of you are all set to flame me just because of my title. I know because a couple of years back, I would have probably been one of the first to say “NO!”, when anybody started talking about query hints. But, like everything else in this world, they

A Generic Interval Range Table to Generate Permutations

In earlier post ( http://blogs.msdn.com/microsoftbob/archive/2009/07/06/generating-a-list-of-calendar-dates.aspx ), I provided an example of how to use a UDF that returns calendar days in order to generate data from a table valued function.  Today,

Using NTILE with Cross Reference Values to Create Dimensions

I confess  lack of depth in SQL Analysis Services (SSAS).  I've read quite a bit about the capabilities including data mining, and played with a couple of the wizards, but just haven't had time to immerse deeply into end-to-end scenarios. 

Auto-Generating Pivot Views

Coming back from the Sci-Fi world of AI, etc to some real world scenarios...  Earlier I posted a generic stored procedure that automatically unpivots data so that columns become rows.  Today, I provide the inverse capability, although not truly

Dumping SQL data in pivoted format

Technorati Tags: SQL Server , Tips If you’re like me and spend a lot of time in SQL Query Analyzer, querying data directly, you may find the column display format tedious for tables with lots of columns or where you are only working with a couple of entries

Part 2 – Bits for Event Patterns

I promised last time ( http://blogs.msdn.com/microsoftbob/archive/2009/06/03/the-power-of-bits-for-historical-event-analysis.aspx ) that I would follow up with some code to provide a proof of concept for using bit masks for date patterns. I have good

The power of bits for historical event analysis

I guess my title sounds more like a subject for an academic paper, which I may actually do in time, but in any case, the use of bitmasks for represent events occurring over a fixed period of time has powerful implications for detailed correlation with
 
Page view tracker