It seems that while CREATE LOGIN allows you to create simple passwords that do not get validated by the Windows password policy (using CHECK_POLICY = OFF), the CREATE USER syntax has not been updated to allow the same.Not that I am condoning simple passwords, but it seems silly if I can make my server-level logins much easier to hack, but I can't do this for contained users that are far less of an exposure risk. The inconsistency is glaring, and I would hope that this behavior is at least documented so that folks understand that they can't bypass the policy check when creating contained users (the lack of CHECK_POLICY in the syntax diagram is not exactly documentation IMHO).Of course it will be much better if CREATE USER was extended to support the same functionality afforded to CREATE LOGIN.In the meantime, the workarounds are easy: (1) use a password that meets the policy.(2) disable the policy.(3) create a normal login with CHECK_POLICY = OFF, then use the system procedure sp_migrate_user_to_contained to convert them to a database user with password. This procedure does not validate the password.Please see the Details section for the T-SQL script to demonstrate this issue.
Product Language
Version
Category
Operating System
Operating System Language
Steps to Reproduce
Actual Results
Expected Results
Platform