AdventureWorks2012 Bug on Azure

, 2013-09-25

While I have production databases in Azure, I can’t exactly experiment with them at will. Further, while they mostly have pretty innocuous data, it’s not all public. So, I need a mechanism for creating a database that I can play with in Azure. I use AdventureWorks. I get it. It’s not that big (actually a good thing for Azure) and it’s not a great database design which doesn’t reflect reality (I would argue makes this reflects reality as I’ve seen it). However, it’s a handy resource because you can go to Codeplex and download it. That makes it a great way to teach others because everyone has access to it.


The other day I download the database and install it on my Azure system. I wanted cleaned up copies of everything for a series of tests and to help get ready for my pre-con at the PASS Summit. I ran a Powershell command to create a copy of the database and was presented with an error. Seems one of the tables, DatabaseLog, didn’t have a clustered primary key, a requirement in Azure. You can create tables without a clustered primary key in Azure, but if you attempt to access that table, you’ll get an error. That’s what was happening to me. Now I had just created two copies of AdventureWorks on two different servers and I had used SQL Compare & SQL Data Compare to create a copy of the database (testing stuff for work too). I had three copies available to validate that it wasn’t something I had screwed up. Nope. It was them, not me.

You can go to Connect to vote up the fix. I also posted the very simple work-around for the issue.

I would be remiss if I didn’t give you one more opportunity to win an Aston Martin. Connect your MSDN account to an Azure account for your chance to win. Oh, and to get a great place to go to learn and test and grow your skill set. All this at no cost to you and no credit card required.





Related content

Database Mirroring FAQ: Can a 2008 SQL instance be used as the witness for a 2005 database mirroring setup?

Question: Can a 2008 SQL instance be used as the witness for a 2005 database mirroring setup? This question was sent to me via email. My reply follows. Can a 2008 SQL instance be used as the witness for a 2005 database mirroring setup? Databases to be mirrored are currently running on 2005 SQL instances but will be upgraded to 2008 SQL in the near future.


1,567 reads

Networking - Part 4

You may want to read Part 1 , Part 2 , and Part 3 before continuing. This time around I'd like to talk about social networking. We'll start with social networking. Facebook, MySpace, and Twitter are all good examples of using technology to let...


1,530 reads

Speaking at Community Events - More Thoughts

Last week I posted Speaking at Community Events - Time to Raise the Bar?, a first cut at talking about to what degree we should require experience for speakers at events like SQLSaturday as well as when it might be appropriate to add additional focus/limitations on the presentations that are accepted. I've got a few more thoughts on the topic this week, and I look forward to your comments.


360 reads