A machining spindle comprising a tool-holder shaft, having a front end on which a tool holder is able to be mounted via an attachment system between the tool holder and the front end of the shaft, the spindle comprising a first drive actuator for driving the shaft, which is connected to a coupling member that is slidably connected to a first portion of the shaft in order to drive the shaft in rotation, and a second drive actuator which is connected to a nut that is helically connected to a second portion of the shaft in order to move the shaft axially, said first and second portions extending successively along a common length of the shaft between the front end of the shaft and an opposite end of the shaft, the spindle comprising being characterized in that it comprises a control rod for the tool holder attachment system, which is connected to the second portion of the shaft by a solid connection, and in that it comprises locking means mounted so as to be movable between the first portion and the second portion of the shaft by way of switching means, between a first position in which the second portion of the shaft is solidly connected to the first portion of the shaft, and a second position in which the second portion of the shaft is slidably connected to the first portion of the shaft, allowing an axial movement of the second portion with respect to the first portion in order to allow the control rod to be moved axially under the action of the second drive actuator so as to make the attachment system pass into a position releasing the tool holder.