PRINT statement in T-SQL

后端 未结 6 785
有刺的猬
有刺的猬 2020-11-30 22:57

Why does the PRINT statement in T-SQL seem to only sometimes work? What are the constraints on using it? It seems sometimes if a result set is generated, it becomes a null

6条回答
  •  余生分开走
    2020-11-30 23:22

    For the benefit of anyone else reading this question that really is missing print statements from their output, there actually are cases where the print executes but is not returned to the client. I can't tell you specifically what they are. I can tell you that if put a go statement immediately before and after any print statement, you will see it if it is executed.

提交回复
热议问题