Translating SQL SIDS to AD format