Pergunta

How can rename Sql Server schema name from Upper case to lower case.

In my SQL Server naming convention, we must use lower case name for Schema instead of upper case.

thanks in advance

Foi útil?

Solução

You could probably move all objects from 'MySchema' to a temporary schema say 'tmp_schema' using

ALTER SCHEMA NewSchema TRANSFER OldSchema.Object;

Then drop 'MySchema', recreate as 'myschema' and then move all the objects back with the same method. This post has a script to do it that you might find useful.

Rename SQL Server Schema

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top