Thanks prytula_guy
but me also what to know how to write in a txt file, i.e I would like to create a log file, while executing the procedure so after running some part of code in the procedure i need to write out some information on to the log file, please let me know about this i had a look with export, do you think by creating a temp table and inserting the process in this table and at the end of the procedure, use this export command to export all records to a text file,
if possible also provide me with some links to where i can find more information about this.
:-)