Here is an image showing the pin diagram of this transistor.
Classification of hFE
The KSB1017 transistor can have a current gain of 40 to 240. The gain of the KSB1017-O will be in the range from 70 to 140, for the KSB1017-R it will be in the range from 40 to 80, for the KSB1017-Y it will be in the range from 120 to 240.
Complementary NPN transistor
The complementary NPN transistor to the KSB1017 is the KSD1408.
SMD Version of KSB1017 transistor
The BDP952 (SOT-223) is the SMD version of the KSB1017 transistor. These transistors are of the same type, have similar parameters and are designed for surface mounting.