In general, I decided to copy the tables from one database to another database on the server.
I used the standard export Export/Import utility.
To my surprise, no keys, no restrictions, no indexes were copied ...
But since there were source tables, I generated the scripts and put everything back into place.
I later discovered that IDENTITY not copied. At first I tried to add it through the interface, to which I received a TIMEOUT error. It would seem that it may be easier to hang IDENTITY on the PRIMARY KEY , but no ...
Googling, I found that through the Alter Table it can not be added.
The choice was:
1) Add a new column with IDENTITY and forget about the old one. This option did not fit me, since the column was a PK and there were links to it => by generating a new IDENTITY one could lose something.
2) Create a new table where IDENTITY already exists and using IDENTITY INSERT to merge data from the old table. What I took advantage of, losing extra time.
Tell me, what are the reasons for such restrictions?
Or is it still possible to add IDENTITYT somehow through ALTER TABLE ?