The Ecto.Changeset.unique_constraint is supposed to catch the Database error thrown when a unique key is violated. However this adapter does not seem to work. This is (part of) the logged error: ** (exit) an exception was raised:, ** (Tds.Error) Line 1 (Error 2627): Violation of UNIQUEKEY``. This is not caught by ecto properly and does not work. Not sure if the issue is this adapter or ecto but I figured I'd start here.