Let R be the coordinate ring of an affine toric variety. We prove, using direct elementary methods, that the endomorphism ring End R (A), where A is the (finite) direct sum of all (isomorphism classes of) conic R-modules, has finite global dimension equal to the dimension of R. This gives a precise version, and an elementary proof, of a theorem ofŠpenko and Van den Bergh implying that End R (A) has finite global dimension. Furthermore, we show that End R (A) is a non-commutative crepant resolution if and only if the toric variety is simplicial. For toric varieties over a perfect field k of prime characteristic, we show that the ring of differential operators D k (R) has finite global dimension. mension. 1 This theorem is due to Roos in characteristic zero [Roo72, Cha74], and Paul Smith in characteristic p [Smi87].