Hi,
I am writing a stored procedure that checks for a value in a table calle W01, if it exists then the value is updated with one from a reference table. If the record does not exist then an insert is done with the record from a reference table.
I would like to capture the values of a couple of the fields if an insert is done. Is this something that the PRINT statement would allow me to do ? If yes, please could someone help me out with the syntax as I am struggling due to SQL not being one of my skills!
Thanks - ShortyA
I am writing a stored procedure that checks for a value in a table calle W01, if it exists then the value is updated with one from a reference table. If the record does not exist then an insert is done with the record from a reference table.
I would like to capture the values of a couple of the fields if an insert is done. Is this something that the PRINT statement would allow me to do ? If yes, please could someone help me out with the syntax as I am struggling due to SQL not being one of my skills!
Thanks - ShortyA