Day 14 of Common Table Expression Month (June) at SteveStedman.com, today we will be taking a look at data paging with CTE’s and how it compares to the offset and fetch in T-SQL 2012. Now on to CTE Data Paging. These queries will be using that database that was set up in a previous posting on the CTE_DEMO Sample Database, if you haven’t …

CTE Data Paging Read more »

Quite often when working testing different performance measures from the Database Health Reports to testing Resource Governor configuration I end up in a situation where I need to emulate a high CPU load on my test SQL Server. In this case it is usually my desktop or a Hyper-V virtual machine, where I want to see how things will work …

Query To Simulate CPU Load Read more »

Day 12 of Common Table Expression Month (June) at SteveStedman.com, today we will be taking a look at how to use multiple nested CTEs in a query to use up all the memory on your SQL Server. These queries will be using that database that was set up in a previous posting on the CTE_DEMO Sample Database, if you haven’t set up …

Nested CTE’s Gone Wild – The Video Read more »

Day 11 of Common Table Expression Month (June) at SteveStedman.com, today we will be taking a look at how to use multiple nested CTEs in a query. These queries will be using that database that was set up in a previous posting on the CTE_DEMO Sample Database, if you haven’t set up the sample database, download it and set it up now. Russian …

Nested CTEs Read more »

Since the initial release of the Database Health Reports project last September, there have been over 700 downloads of the application at this point Beta6 is going strong. First I would like to say Thank You to everyone using it so far. Beta 6 introduced a few new features, but mostly focused on overall stability and bug fixing. New Inefficient Indexes report added. …

Database Health Reports – Seven Hundred Downloads So Far Read more »

Day 10 of Common Table Expression Month (June) at SteveStedman.com, today we will be taking a look at how to use multiple CTEs in a query. These queries will be using that database that was set up in a previous posting on the CTE_DEMO Sample Database, if you haven’t set up the sample database, download it and set it up now.   …

Multiple CTEs in a Query Read more »

Day 9 of Common Table Expression Month (June) at SteveStedman.com, today I will be building on the intro to recursive CTEs from two days ago and on showing how a recursive CTE can be used to calculate information about dates of the year from yesterday. This would be useful if you were trying to build a calendar. These queries will be using that database …

Expanding on Recursive Dates CTE Read more »

Microsoft has announced the next version of SQL Server will be SQL Server 2014, and that a pre-release version will be available later this year. Some of the features announced SQL Server 2014 are: new disaster recovery and backup solutions with Windows Azure enhanced self service BI tools high availability improvements, to the Always On capabilities in memory OLTP for …

SQL Server 2014 Announced Read more »

Day 8 of Common Table Expression Month (June) at SteveStedman.com, today I will be building on the intro to recursive CTEs from yesterday and showing how a recursive CTE can be used to calculate information about dates of the year. This would be useful if you were trying to build a calendar. These queries will be using that database that …

Recursive CTE for Dates In A Year Read more »

Day 7 of Common Table Expression Month (June) at SteveStedman.com, today we will be taking a look at the introduction to recursive CTEs. These queries will be using that database that was set up in a previous posting on the CTE_DEMO Sample Database, if you haven’t set up the sample database, download it and set it up now. The recursive feature …

Introduction to Recursive CTEs Read more »