Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20990

how to print out messages from a sql script in the event log using jscript

$
0
0

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

 


Viewing all articles
Browse latest Browse all 20990

Trending Articles