Is there a way to write a message to the console? I'd like to write some debug data if it's possible.
+6
A:
Well, there's the PRINT command:
PRINT 'Hello, world!'
I'm not sure if that's what you're looking for, though
Matti Virkkunen
2010-04-14 19:45:43
yup that's what I'm looking for.
Kevin
2010-04-14 19:51:48
+1
A:
Higher overhead but you can log to the event logging system with xp_logevent.
Alex K.
2010-04-14 19:52:47
A:
For long-running operations, instead of PRINT, you might need to use the RAISERROR with NOWAIT option workaround, since the messages display is cached.
Cade Roux
2010-04-14 20:14:43