SQL Server Data Tools – a free standalone download or and add-in to visual studio comes in different flavors and versions. Although this blog post uses Visual Studio 2012 and SSDT stand-alone the principles are example are also valid on Visual Studio 2013.
Read more »Intro to Auditing in SQL Server
September 30, 2014In the world of information, auditing serves an important purpose. It helps to provide an assurance that the data involved is accurate and safe. The level of assurance of course depends on any number of factors including the level of trust in those performing an audit (or collecting the data for the audit), the frequency the data is collected, and the types of data collected.
Any time the collection of data is this important to a process you can bet that a DBA is going to be involved. We get asked to create and run queries to pull data (frequently ridiculously complex queries, and rarely some simple ones). You could almost make it into a joke. Read more »
SQL Server Confidential – Part I – Crypto basics and SQL Server Cryptographic Features
September 29, 2014Intro
We use cryptography every day: on the internet, mobile devices, ATM machines, and in almost every aspects of our digital life. In a nutshell, cryptography is about data scrambling and hiding, depending on the implementation and user-specific needs. Read more »
Using custom reports to improve performance reporting in SQL Server 2014 – running and modifying the reports
September 12, 2014Using custom reports to improve performance reporting in SQL Server 2014 – the basics
September 8, 2014Using Extended Events to review SQL Server failed logins
August 5, 2014Performance Dashboard Reports in SQL Server 2014
July 29, 2014SQL Server Management Studio performance reports
July 24, 2014SQL Server Commands – Dynamic SQL
July 4, 2014Background to exception handling in SQL Server
June 26, 2014SQL Server cursor performance problems
June 18, 2014Introduction
In a previous article we discussed the how to set up a basic cursor. We explained that a cursor is a row-based operation that takes a given SELECT statement and breaks downs the processing of the data into looping executions. People that do not have the background in Database Administration or who did not enjoy database classes while studying will often find SQL Server cursors handy and fun to write. This is because they break free of the shackles of set-based logic that is the normal when writing most T-SQL scripts. It is for this reason that we so often find SQL Server cursors written into the business logic of an application and it is a real pity because they are real performance hogs. Yes, there are times when cursors are OK to use and they can be tuned slightly by playing with their different types but, as a general rule of thumb, one should try to avoid them at all costs. Read more »SQL Server Management Studio tutorial – Configuring the environment
June 11, 2014Read more »
SQL Server cursor tutorial
June 4, 2014Introduction
Most people that work with Microsoft SQL Server will have at least heard talk of cursors and often, even if people know on a basic level what SQL Server cursors do, they are not always certain when to use them and how to write the code behind them. So this article takes a step back and provides an explanation as to what SQL Server cursors can be used for as well as a basic example that you can run for yourself to test. Read more »SQL Server Business Intelligence – Using recursive CTE and persisted computed columns to create a calendar table
June 2, 2014Introduction
Those of you that have worked extensively with dates in SQL Server (or any other relational database management system (RDBMS)) will know how finicky and complicated it can be to use DATE functions, DATEPART, DATENAME, DATEADD, GETDATE(), CURRENT_TIMESTAMP etc. Personally, I find it very useful to have a calendar table that stocks all of the necessary, pre-calculated fields in one place. Whether you’re doing BI or web, it can be very helpful to have a fixed ID for a date in order to really optimize your data analysis and processing. Read more »SQL Server Business Intelligence – Expanding fact tables in an established data warehouse
May 30, 2014Introduction
As in often the case in life, things that sound simple are not always the easiest things to do. In computer science this is even more often the case. In fact, one of the most challenging things about information technology work is often the communication with bosses that know little about technology and require justification for time spent on seemingly simple tasks. However, by the same token, tasks that seem impossible to the untrained eye are often fairly straightforward and quick to implement and can earn you easy respect. Read more »Columnstore Index in SQL Server
May 28, 2014Prerequisite
The discussion pertaining to SQL Server 2012 columnstore indexing is better explained through theoretical and practical measures. Thus, for the practical measure part – I will be using the AdventureWorksDW2012 sample database. The rest of the prerequisites for a comprehensive understanding of this topic are as follows:Read more »
SQL Server backup – models and types
May 26, 2014Poor SQL query design – a SQL query performance killer – the basics
May 23, 2014Read more »
SQL Server Policy Based Management – Categories and Database Subscriptions
May 21, 2014SQL Server Business Intelligence features – creating reports based on OLAP cubes
May 19, 2014Introduction
In order to build a SQL Server business intelligence solution one needs to:
- Design a de-normalized data warehouse
- Build and schedule an Extract, Transform and Load (ETL) package that will feed the data warehouse at regular intervals with new data from the OLTP database.
- Setup, personalize and process a cube based on the data warehouse.
- Add the processing step to the ETL schedule to ensure the whole chain is automated.
Read more »