Smart Rename - Schema change error
ptracey
Posts: 3
I am using the smart rename feature. It works fine until I try and change the schema for a table.
It generates code like:
but this always returns:
The new schema exists, as I previously ran:
It generates code like:
EXEC sp_changeobjectowner N'[dbo].[FRED]',N'NewSchema'
but this always returns:
Database principal or schema 'NewSchema' does not exist in this database.
The new schema exists, as I previously ran:
EXEC( 'CREATE SCHEMA NewSchema AUTHORIZATION dbo' );And it appears in a list when I run
"SELECT name FROM sys.schemas"
Comments
P