It depends which case you mean, because Holmes worked through dozens in the canonical stories and is mentioned as having handled many more that Conan Doyle never wrote up in detail.
The four novels and fifty-six short stories cover only a fraction of his career. References to unrecorded cases, often dropped in passing by Watson, imply a practice spanning years and continents.
Name the one you are curious about and the specifics are easy to track down.