That connection came courtesy of the android Lt. Commander Data. He fancied himself as Sherlock Holmes and in the episode 'Elementary Dear Data', he created a facsimile of Victorian London so that he could 'play' Sherlock Holmes opposite Geordi La Forge's unconventional Doctor Watson.
'Elementary Dear Data' was one of the most entertaining episodes in Tng's second season but I was never entirely satisfied with it. The writers played fast and loose with Holmes canon and Brent Spiner's