Hi, I have a question regarding PRINT statement in transact-SQL.
The following is my test environment
* Vuisual Studion 2003, server explorer
* either in SQL pane or using stored procedur
The scenerio are like belo
* alter procedure myProcedure as PRINT 'HELLO' <===== It work
* alter procedure myProcedure as begin PRINT 'HELLO' end <===== It does not work
Please advice
Peter

Re: PRINT in transact-SQL by Bernie

Bernie
Fri Feb 20 12:37:41 CST 2004

Hi Peter,

I tried both scenarios using sql server 2000 - both worked fine. Did you
check the status of myprocedure in sql's enterprise manager?

Bernie Yaeger

"Peter" <anonymous@discussions.microsoft.com> wrote in message
news:08F94099-406D-430D-AD2A-19FD9F0F2310@microsoft.com...
> Hi, I have a question regarding PRINT statement in transact-SQL.
> The following is my test environments
> * Vuisual Studion 2003, server explorer,
> * either in SQL pane or using stored procedure
> The scenerio are like below
> * alter procedure myProcedure as PRINT 'HELLO'
<===== It works
> * alter procedure myProcedure as begin PRINT 'HELLO' end <=====
It does not work
> Please advice.
> Peter



RE: PRINT in transact-SQL by anonymous

anonymous
Fri Feb 20 16:41:07 CST 2004

Hi Bernie
After I saw your reply, I found that I had not defined my isuue more precisely. I use MSDE. I might make some mistake and might not. Anyway I can use "SELECT" for output instead. Thanks
Peter