开发者

Microsoft SQL Server 2005 Console Write Line

开发者 https://www.devze.com 2022-12-27 02:36 出处:网络
Is there a way to write a message to the console?I\'d like to write some de开发者_如何学JAVAbug data if it\'s possible.The PRINT command emits a message that may be shown in a console depending on wha

Is there a way to write a message to the console? I'd like to write some de开发者_如何学JAVAbug data if it's possible.


The PRINT command emits a message that may be shown in a console depending on what tool you're using:

PRINT 'Hello, world!'

Not all clients necessarily show these messages though.


You mean PRINT?

For example:

PRINT 'hello world'


For long-running operations, instead of PRINT, you might need to use the RAISERROR with NOWAIT option workaround, since the messages display is cached.


Higher overhead but you can log to the event logging system with xp_logevent.

0

精彩评论

暂无评论...
验证码 换一张
取 消