$ 0 0 I don't think you can do that in a SQL SP. But an External SP written in C should be able to achieve that. Dieter