Search code examples
azureasp.net-authentication

aspnet_regsql and deployment to Azure


I'm pretty new to Azure and trying to work on deploying an already existing MVC 3 website (I'm late to the project).

It has membership information (where the tables should be genned from aspnet_regsql) and it links those tables to application specific tables. To get it into a working state I need to insert some form of "default data" as the code does (unfortunately) make some assumptions about what should be in the database.

No bother, I have an app that creates a default database and inserts the required data. I can then import that into Azure, this doesn't work as Azure demands clustered indexes. This is because aspnet_regsql creates some auth table keys as unclustered so I'm now left having to alter these tables as part of the process to make the primary keys clustered.

I was just wondering if aspnet_regsql had been superceded somehow due to Azure demanding clustered indexes? Am I missing a trick here or is writing a script to modify the clustering of these indexes the sensible approach?


Solution

  • Found the solution elsewhere here:

    http://support.microsoft.com/kb/2006191/de