by Mandy Doward - 4/10/2016

Working With Axes in MDX SELECT Statements

The SQL Server MDX SELECT statement supports the specification of up to 128 axes, but we generally only use two in our queries.

  • The MDX query editor in Management Studio can only represent two axes, columns and rows.
  • SSRS only supports two axes in MDX SELECT statements.

Specialist client tools might require data to be delivered via more than two axes, but in the main two axes is plenty for our requirements.


by Mandy Doward - 30/9/2016

Plotting Charts With SQL Server R Service

Yesterday I posted a blog article about the R Service available in SQL Server 2016 and showed an example of using regular expressions with the stringr R library.

In this blog I am talking about how R can be implemented for chart plotting purposes in SQL Server.

 


by Mandy Doward - 30/9/2016

One More Language to Learn!

So, we have had SQL, TSQL, MDX, DMX, DAX to keep us busy in the SQL Server world for years now so I guess it was about time another language came along to join them!

SQL Server 2016 enters the world of Big Data with its PolyBase and R Services.

 

The SQL Server R Service

The R Service enables integration of R scripts into TSQl scripts. 


by Mandy Doward - 21/9/2016

Using CROSS APPLY In SQL SELECT Statements

In this article I  take you through the following:

  • CROSS APPLY
  • OUTER APPLY
  • CROSS APPLY with User Defined Table Valued Functions

When Should We Use The CROSS APPLY Statement

The CROSS APPLY statement behaves in a similar fashion to a correlated subquery, but allows us to use ORDER BY statements within the subquery. This is very useful where we wish to extract the top record from a sub query to use in an outer sub query.


by - 5/5/2019

This is the first of a series of blogs containing useful pieces of code.

Adding A New Worksheet into A Workbook

The following piece of code allows you to add a new Worksheet into your Workbook.

Sub NewWorksheet()


by Mandy Doward - 21/9/2016

Counting Members in an MDX Query

MDX is a challenging query language. It is completely different to the SQL query language despite having a SELECT statement!

MDX queries are all about hierarchies, measures and members and when it comes to carrying out tasks that are simple in SQL it may not be so simple in MDX.

Most of the time when we work with MDX queries we are interested in bringing out aggregate values that are stored in our cube, but occasionally we may want to derive values from the stored cube data.


by Mandy Doward - 15/9/2016

What Are ASP .NET Web Forms & ASP .NET MVC?

ASP .NET Web Forms and ASP .NET MVC are both Frameworks using APIs that hook into the ASP .NET Core functionality for web development.

 

Why MVC Rather Than Web Forms?

Each of these frameworks has its merits, but MVC was introduced to overcome some of the shortfalls of Web Forms.


by Mandy Doward - 8/9/2016

Creating UNIX & Linux Piped Commands

UNIX and Linux offer a very powerful feature know as pipes. It is often possible to carry out really complicated tasks without the need for shell scripting, variables, loops, etc.

Take the following example, which creates a dictionary file from a text document, but excludes one and two letter words:

tr -cs "[a-z][A-Z]" "[\012*]" < readme.txt | sort -uf | tr "[A-Z]" "[a-z]" | egrep -v "(^.$|^..$)" > dictionary

One command line that is comprised of five separate steps:


by Mandy Doward - 8/9/2016

RHEL/CentOS 7 Has A New Initialisation Daemon

The init daemon is the initialisation daemon first implemented in System V UNIX systems and has been around for over 40 years!

RedHat’s RHEL 7 and CentOS 7 introduces a replacement for init called systemd.

Startup & Run Levels

RHEL 6 (and CentOS 6) supported SysV init and Upstart with start and kill scripts created as links to scripts in /etc/rc.d/init.d scripts in the appropriate run level directory e.g. /etc/rc2.d.


by Mandy Doward - 2/9/2016

Make Rows the Columns and Make Columns the Rows In an Excel Worksheet

Have you ever found that you have a worksheet with a table of data on it, but you would really like the rows and columns to be switched round? In other words you would like to transpose the columns and rows.


Pages