How to add a primary key to all tables in SQL server? : While migrating from access to SQL server and then using entity framework on it, I got this issue. The good thing is that it if it fails for some table, it doesn't fail for all.