try this...
Code:
WHILE 1=1 BEGIN
raiserror('OK',0,1) with nowait
WAITFOR DELAY '000:00:05'
END
which works diffrently than...
Code:
WHILE 1=1 BEGIN
raiserror('OK',0,1)
WAITFOR DELAY '000:00:05'
END
As I recall the diffrence is that all output is held untill the end of the batch, adding the "with nowait" to the raiserror forced the output to the user.