Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated TableCreationScript for SQL Azure #114

Merged
merged 1 commit into from Feb 8, 2013
Merged

Updated TableCreationScript for SQL Azure #114

merged 1 commit into from Feb 8, 2013

Conversation

JSkimming
Copy link
Contributor

@JSkimming JSkimming commented Feb 8, 2013

I've just been using MiniProfiler and setting it up to store the profile results in SQL Azure. I've used the latest TableCreationScript, but it failed because SQL Azure requires all tables to have a primary clustered index.

I also answered this question on stackoverflow while producing the solution.

The change still works on tradition SQL Server, which I use in development.

The TableCreationScript didn't have a clustered primary key on the
MiniProfilers table, and would fail when used in SQL Azure. By adding
the unused RowId column profiling can now be saved to SQL Azure. An
additional unique index IX_MiniProfilers_Id has been added to replace
the loss of the PK constraint on the Id column.
See http://stackoverflow.com/a/14775721/495964
dixon added a commit that referenced this pull request Feb 8, 2013
Updated TableCreationScript for SQL Azure
@dixon dixon merged commit 9124e7c into SamSaffron:master Feb 8, 2013
@dixon
Copy link
Collaborator

dixon commented Feb 8, 2013

Thanks, and thank you for answering that question :)

@JSkimming JSkimming deleted the SQLAzure_TableCreationScript branch February 9, 2013 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants