kford
10 years agoOccasional Contributor
how to print out messages from a sql script in the event log using jscript
Is there a way to print a message out from a sql script using the log.message?
For example, if the sql script ran correctly it would print out "@User submitted the form successfully "
I have code to do this in sql but i cant duplicate this in test complete 10.40? Can anyone give me some hints on how to do this using jscript?
code example:
declare @user
SELECT 'The user ' + @User+ ' has submitted a successful submission '
end
else
begin
SELECT 'The user ' + @User + ' didn't submit the form '
end