Here is an image showing the pin diagram of this transistor.
Classification of hFE
The KSB1017-O transistor can have a current gain of 70 to 140. The gain of the KSB1017 will be in the range from 40 to 240, 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-O is the KSD1408-O.
SMD Version of KSB1017-O transistor
The BDP952 (SOT-223) is the SMD version of the KSB1017-O transistor. These transistors are of the same type, have similar parameters and are designed for surface mounting.
Replacement and Equivalent for KSB1017-O transistor