Drive 12v solenoid from Raspberry Pi using transistor
That transistor should be fine.  Your Vebo won't get to 5 volts (it won't even get positive) the way you have it connected.  I'd look into using a solenoid/relay driver though, since you're already using a SMD component.  They have the appropriate base/gate resistor for logic level drive and flyback diode (which you are missing) integrated into the same size package as the transistor.