Solved

SQL to show output results

Posted on 2011-02-19
3
430 Views
Last Modified: 2012-05-11
I have prepared a sql file mysql.sql

Satement1
Go
Statement2
Go

When I run in SSMS, I want to see each batch followed by its
results:
Statement 1
Go
Results from above batch 1
Statement2
Go
Results from above batch 2


Is there a way to get this output? In Oracle one can use "SET ECHO ON"/"SET FEEDBACK ON"

Is there anything equivalent in SQL server?

Thanks,

~sve
0
Comment
Question by:sventhan
  • 2
3 Comments
 
LVL 18

Author Comment

by:sventhan
ID: 34934289
I've to capture this in SQLCMD. So we could verify our deployment.
0
 
LVL 23

Accepted Solution

by:
Racim BOUDJAKDJI earned 500 total points
ID: 34934412
simply wrap up the two statement in one then SQL  will return the outputs in one run.
0
 
LVL 18

Author Closing Comment

by:sventhan
ID: 34956209
Thanks.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how the fundamental information of how to create a table.

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now