Home Forums Article Discussions Article Discussions by Author Discuss content posted by deepforest Custom Logging in a transaction RE: Custom Logging in a transaction
Fiacre Lenehan
Mr or Mrs. 500
Points: 584
More actions
July 22, 2010 at 1:15 am
#1196655
Nice idea.
I have used xp_cmdshell to pipe debug to logfile when transactions fail
declare @msg varchar(255)
set @msg = 'echo ' + 'debug text here' + ' > c:\log.txt'
exec xp_cmdshell @msg ,NO_OUTPUT
but this is better