Skip to content
Advertisement

The specified schema name either does not exist or you do not have permission to use it

I am trying to create replica of my database from SQL server to another.
For that I am generating script from original server and trying to run in another server. I’ve created database manually with the same name.

Here is the screenshot of original database enter image description here

When I generate script, following script is created which I am trying in another server

When I try to run this script, I get following error

The specified schema name “common” either does not exist or you do not have permission to use it.

I don’t know what is the meaning of common here.Thanks

Advertisement

Answer

Your tables are ‘grouped’ (for want of better word) in schemas (google for it). You should run

And likewise for all other schemas.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement