Category Archives: Business Intelligence

SQL Server 2012 Windowing Functions Part 2 of 2: New Analytic Functions

This is the second part of my two-part article on windowing functions in SQL Server 2012. In Part 1, I explained the new running and sliding aggregation capabilities added to the OVER clause in SQL Server 2012. In this post, I’ll explain the new T-SQL analytic windowing functions. All of these functions operate using the [...]

Also posted in SQL Server | Tagged | 1 Comment

SQL Server 2012 Windowing Functions Part 1 of 2: Running and Sliding Aggregates

The first windowing capabilities appeared in SQL Server 2005 with the introduction of the OVER clause and a set of ranking functions (ROW_NUMBER, RANK, DENSE_RANK, and NTILE). The term “window,” as it is used here, refers to the scope of visibility from one row in a result set relative to neighboring rows in the same [...]

Also posted in SQL Server | Tagged | 3 Comments

Book Announcement! Introducing “Programming Microsoft SQL Server 2012″

I’m very happy to announce that I am authoring Tallan’s new book on SQL Server 2012! The full title, “Programming Microsoft SQL Server 2012” will technically be published by O’Reilly, yet it will be branded as a Microsoft Press book, and will feature Tallan’s logo on the front cover. O’Reilly recently acquired MS Press, but [...]

Also posted in Microsoft, SQL Server | Tagged | Leave a comment

Leonard Lobel Awarded Microsoft MVP for SQL Server!

This month, Microsoft awarded 143 exceptional technical community leaders with the Most Valuable Professional (MVP) title and re-awarded 764 MVPs worldwide. Tallan is thrilled to announce that Lenni Lobel has been recognized as an MVP in SQL Server!
According to the Microsoft MVP Award Program Blog, there are more than 100 million social and technical community [...]

Also posted in SQL Server | Tagged , | Leave a comment

Using SqlFileStream with C# to Access SQL Server FILESTREAM Data

FILESTREAM is a powerful feature in SQL Server that stores varbinary(max) column data (BLOBs) in the file system (where BLOBs belongs) rather than in the database’s structured file groups (where BLOBs kill performance). This feature was first introduced in SQL Server 2008, and is now being expanded with the new FileTable feature coming in SQL [...]

Also posted in .NET Framework, SQL Server | Tagged , , | 6 Comments

Introducing SQL Server Developer Tools (code-named “Juneau”)

With SQL Server Denali CTP3 released just two weeks ago, I’ve been ramping up fast as I write the new edition of Tallan’s SQL Server book (Programming Microsoft SQL Server 2012, O’Reilly) and prepare for upcoming presentations at the NJSQL User Group (Sep 20) and the SDC event in the Netherlands (Oct 2/3). I recently [...]

Also posted in SQL Server | Tagged , , | Leave a comment

The SQL Server OVER Clause

One useful feature in SQL Server is something called the OVER clause. The OVER clause has been available since SQL Server 2005 and allows you to perform window functions over a set of data.  SQL Server provides two types of window functions: aggregate window functions and ranking window functions.  I will explain what aggregate [...]

Also posted in SQL Server | Tagged , , | 4 Comments

Using Table Valued Variables instead of Dynamic SQL

I had a situation today where I have a stored procedure that is structured as follows:

1 CREATE PROCEDURE _Entity_GetByKeywordTypeDateRange(
2 @keyword varchar(255) = null,
3 @typeA bit = 0,
4 @typeB bit = 0,
5 @typeC bit = [...]

Also posted in Enterprise .NET, SQL Server | Tagged , , | Leave a comment

Understanding Metadata Management

Metadata Management- Fun stuff, right?  Depending on what your relationship to an organization’s data is, it can have many different meanings. Database developers and administrators tend to focus on technical metadata, which provides descriptive information on table structures, job streams, ETL mappings, data lineage, etc.
Business users have a need for metadata as well. Attribute definitions, [...]

Posted in Business Intelligence | Leave a comment

Upcoming MDX and Analysis Services Workshops

In the month of July we’re going to be holding a FREE, half-day, hands-on workshop on MDX and Analysis Services around the country.
If you’re in the Los Angeles, New York City or Hartford, CT areas, come join us. We’ll be deconstructing real-world examples and in the process explaining important things to consider in how Analysis Services handles [...]

Also posted in Analysis Services | Leave a comment