Answer for your first part:
DECLARE @ReturnValue int
EXECUTE @ReturnValue = your_stored_procedure param1, param2, ...
Zhavic
---------------------------------------------------------------
In the 1960s you needed the power of two Comodore64s to get a rocket to the moon. Now you need a machine which is a vast number of times more powerful just to run the most popular GUI.