DCL clauses in CREATE SCHEMA
I’ve never been very keen on the option to add additional clauses in the CREATE SCHEMA statement as I’ve seen lots of issues when scripts are executed manually. You get a different outcome, depending upon how you execute it. For example:
CREATE SCHEMA SomeSchema AUTHORIZATION Someone
CREATE TABLE Blah (Some table definition);
If someone executes the first line on its own, then the second line, the table gets created in their default schema, whereas if they execute the statement as a whole, the table gets created in the new schema. But the one that makes no sense to me is the DCL clause. If I change the above to:
2011-06-01