change name of schema sql server code example Example: alter schema sql ALTER SCHEMA toSchemaName TRANSFER fromSchemaName.TableName