The Bit Bucket

Are you using the Azure benefits in your MSDN subscription? Like an Aston Martin?

Most developers and DBAs that I come across have some level of access to an MSDN subscription, yet I am surprised about how many have not yet activated the Azure benefits that are associated with those subscriptions.

If you want to stay relevant within your organisations, it’s important to get your head around Azure and the best part is that you can do much of it at no additional cost.

2013-08-15

Listeners: the missing link for SQL Server Availability Groups in Azure VMs

One of the topics that I’m covering in one of my sessions this year at TechEd Australia is around SQL Database and SQL Server in Azure VMs for DBAs. In that session, I’m planning to spend a while on hybrid on-premises / cloud scenarios.

Availability groups were introduced in SQL Server 2012 and while it’s unlikely that you’d use a synchronous replica in an Azure VM (unless the primary was also in an Azure VM), hosting an asynchronous replica in an Azure VM makes a lot of sense for disaster recovery scenarios where latency isn’t an issue.

2013-08-15

Report Manager: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel

I had seen this issue before but found another cause for it today.

In this case, the client was using SCCM (System Center Configuration Manager) and couldn’t access reports from the reporting server. After resolving some other issues, I was left with “The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel” when I tried to go to http://servername/reports.

When I’ve seen this previously, it’s been to do with the trust relationship between a pair of servers. However, I hadn’t seen it come up before on a single server.

2013-08-05

Do you find T-SQL scripts hard to read with all the square brackets?

The T-SQL scripting tools (such as SQL Server Management Studio) provide two options for scripting names: either to quote them or to omit quotes.

If you avoid things like spaces in object names, you can mostly get away without quoting i.e.

Sales.Customers is just fine and doesn’t need to be [Sales].[Customers].

Even then, one problem that can arise is that a name you had used in your code could become a SQL reserved word. In that case, you either need to change every reference to it (painful), or quote it wherever it’s used (also painful). So quoting by default is always a safe option. However, it makes the scripts much harder to read due to visual noise.

2013-08-03

Performance tuning of tabular data models in Analysis Services

More and more practical information around working with tabular data models is starting to appear as more and more sites get deployed.

At SQL Down Under, we’ve already helped quite a few customers move to tabular data models in Analysis Services and have started to collect quite a bit of information on what works well (and what doesn’t) in terms of performance of these models. We’ve also been running a lot of training on tabular data models.

2013-08-02

Automated backups for Windows Azure SQL Database

One of the questions that I’ve often been asked is about how you can backup databases in Windows Azure SQL Database.

What we have had access to was the ability to export a database to a BACPAC. A BACPAC is basically just a zip file that contains a bunch of metadata along with a set of bcp files for each of the tables in the database. Each table in the database is exported one after the other, so this does not produce a transactionally-consistent backup at a specific point in time. To get a transactionally-consistent copy, you need a database that isn’t in use.

2013-07-24

Should IT professionals learn to type? – Investing in yourself

Why learn?

I was listening today to one of Scott Hanselman’s awesome podcasts with Miguel de Icaza and during the show they discussed things that you really should invest in. One list that came up was a good bed, a good chair, and to learn to type. Most of us spend 1/3 of the day in a bed and 1/3 of the day in a chair, so they seem like no-brainers. Typing is an interesting addition to that list.

2013-07-18

SQL Server and Programming Frameworks

I have days where I can’t decide if I’m frustrated or sad about how I see SQL Server being used by applications, or if I’m happy that this keeps us in ongoing work.

Today I’ve been looking at a system that’s having performance issues. There are three key applications on the system. Each comes from a different vendor and when I look at how each one of them interacts with the server, it’s really frustrating. I’ve come to the conclusion that it’s mostly due to application frameworks that are being used. Here’s an example:

2013-07-11

Is there more to using SQL in Azure than redirecting your connection string?

At SQL Down Under, we’ve been working quite a lot over the past year with customers that are moving some of their applications to cloud-based systems, and mostly on Windows Azure. One message that I often hear about using Windows Azure SQL Database (WASD) is that all you need to do is point your application’s connection string to the cloud and all will be good. While there are occasional cases where that is true, that generally isn’t going to give you a great outcome. To really get a great outcome, you generally will need to check out how your application has been designed.

2013-07-09

SQL Down Under podcast 60 with SQL Server MVP Adam Machanic

I posted another podcast over the weekend. Late last week, I managed to get a show recorded with Adam Machanic. Adam’s always fascinating. In this show, he’s talking about what he’s found regarding increasing query performance using parallelism. Late in the show, he gives his thoughts on a number of topics related to the upcoming SQL Server 2014.

Enjoy!

The show is online now: SQL Down Under Podcast

2013-06-30