Question

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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top