On stochastic optimal control of linear sampled data systems