Skip to content

Instantly share code, notes, and snippets.

@ChrisRisner
Created October 2, 2012 01:57
Show Gist options
  • Save ChrisRisner/3815715 to your computer and use it in GitHub Desktop.
Save ChrisRisner/3815715 to your computer and use it in GitHub Desktop.
Create Mobile Service with Existing db
ALTER TABLE fakeblog.entries
ADD PRIMARY KEY (id);
ALTER TABLE fakeblog.Users
ADD PRIMARY KEY (id);
CREATE SCHEMA fakeblog;
ALTER SCHEMA fakeblog TRANSFER dbo.entries;
ALTER SCHEMA fakeblog TRANSFER dbo.USERS;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment