Vial comprising an outer vial and an inner vial, wherein in the space enclosed between the inner vial and the outer vial a memory chip is included, characterized in that the inner vial and outer vial are connected to each other with the aid of a connecting ring, such that they are detachable from each other, the connecting ring forming a seal in that this can only be broken by destruction, the memory chip being connected to the outer vial. The invention also relates to a method for the use of a vial for the purpose of performing an analysis on a sample and to a system for practicing the method using vials according to the invention.