Availability (RSS)

Availability

SQL Server The Truth - Rebuilding a clustered index does not rebuild the non clustered indexes

My blog has moved to sqlblogcasts.com/blogs/simons
The full version of this post can be found here., http://sqlblogcasts.com/blogs/simons/SQL Server The Truth - Rebuilding a clustered index does not rebuild the non clustered indexes
The new RSS feed is here

It used to be fact that the leaf page of a non-clustered index pointed to the row for the page, because it pointed to the file, page and row if the file or page of the row changed the nonclustered index had to be updated.

... To read the complete version of this post go here, http://sqlblogcasts.com/blogs/simons/SQL Server The Truth - Rebuilding a clustered index does not rebuild the non clustered indexes

Service Broker - Reliable processing

My blog has moved to sqlblogcasts.com/blogs/simons
The full version of this post can be found here., http://sqlblogcasts.com/blogs/simons/Service Broker - Reliable processing
The new RSS feed is here

I have just finished my presentation on asynchronous process/parallel processing using Service Broker at the Microsoft Technology Conference in Ireland. I was a bit tentative after deciding last night, after a few guinesses and whisky (thanks Barry), to add a new feature to my presentation, failure.

... To read the complete version of this post go here, http://sqlblogcasts.com/blogs/simons/Service Broker - Reliable processing

Restoring and Attaching is a one way street

My blog has moved to sqlblogcasts.com/blogs/simons
The full version of this post can be found here., http://sqlblogcasts.com/blogs/simons/Restoring and Attaching is a one way street
The new RSS feed is here

Many people often ask how they can us a database in SQL 2000 that they have attached or restored to SQL2005.

Unfortunately this is a one way street, once upgraded the only way of using a database in a previous version is to copy the schema and data manually. You can't restore or attach a database even if the compatibility has been kept at the previous version.

... To read the complete version of this post go here, http://sqlblogcasts.com/blogs/simons/Restoring and Attaching is a one way street

Native Command Substitution is not supported

My blog has moved to sqlblogcasts.com/blogs/simons
The full version of this post can be found here., http://sqlblogcasts.com/blogs/simons/Native Command Substitution is not supported
The new RSS feed is here

In response to a recent support incident we raised we got a response about use of detours in SQL Server.

A detour is a means by which you can change what SQL Server does. This is used by Litespeed to change native backup commands into Litespeed backup commands. Whilst I always thought this a neat idea I always felt it a bit risky. If I want to do a litespeed backup I can easily write the code or use the UI to do so.

... To read the complete version of this post go here, http://sqlblogcasts.com/blogs/simons/Native Command Substitution is not supported

Do you do perform load testing in Live - Microsoft do

Well Microsoft.com do.

I mentioned the Tech Ed webcasts a few days ago. I unfortunately only caught the end of the Microsoft.com webcast. Well I've just finsihed watching the on demand version and wow. I previously highlighted a talk about amazon.com (Are you running a high volume website) this is another webcast that you should watch.

Its a great insight into what needs to be done to run a high end internet operation. The numbers they are talking about are just scary, 120Gigabits/sec bandwidth, ok so many sites won't be needing this level of scale. However they do provide some great points on,

  • Load balancing, NLB v hardware
  • SQL HA solutions, Peer to Peer, Mirroring, log shipping
  • Clustering
  • Global Load balancing

On interesting statement was on testing. I agree that it is very difficult to simulate Live usage, for 3 reasons, generating the amount of traffic is difficult, generating the traffic in a realistic manner is even more difficult, finally can you afford to duplicate your live hardware. So there is a valid reason for doing load testing in a Live environment.

Cross posted from http://sqlblogcasts.com/blogs

Whats worse losing money or losing data?

I mentioned a the storage engine blog recently and was reading the latest post Common bad advice around disaster recovery when I thought about a recent sitauation that occurred for us which applies to another of the storage engine posts about recovery or repair

Paul talks about doing some Root Cause Anlaysis of the problem, however when your problem is stopping your system from operating what is best,

  1. Carry on trying to solve the problem to avoid corruption, but prolonging the issue
  2. Do a quick dirty fix, that causes corruption, but gets your service working again. Often means you can't do a full RCA.

Our situation is a replication one, where the log reader agent got stuck. It couldn't read past a certain transaction in the log. This meant that no data was being replicated. We run at close to the limit for some of our subscriptions. This means that if anything gets in the way the latency can take quite some time to recover. In this situation we were convinced we could fix the issue and have everything working again, 3 hours later we realised that we could not and so did the fix that resulted in inconsistent data across our replication topology.

The fix meant that data was being replicated again but we had to spend considerable tie reconciling the data, that had been lost (put in the log) in the time we took to try and fix the problem.

As a result of this, we realised that to meet our SLAs we are better doing the dirty fix straight away. Whilst this means that we may have inconsitencies, these should be small (relative to the fix time), data continues to be replicated and so SLAs are met and we shouldn't loose many money/clients.

So the moral of the story is that you need to align ALL your SLAs with ALL your recovery procedures, fix, restore, failover etc.

Cross posted from http://sqlblogcasts.com/blogs