Fix #11208 - Error when saving MSSQL layer when using DSN