An X-ray system includes an X-ray source including an electronically readable data carrier on which an identification code is stored; a query device for electronically querying the identification code from the data carrier of the X-ray source; and a disabling device for disabling operation of the X-ray source in the event of the queried identification code deviating from a previously received identification code.