(re) fixes the search of documen types on SQLServer