Click here to Skip to main content
15,922,696 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to make a sql query in which I want to run multiple statement. But I want to see one by one executed query.

If my one query is execute then it will stop and ask for continue.

For Example.

I have three sql query.

1. Select Count(*) from student

here sql query display result and ask for continue to run next query.

1. Select Count(*) from student2


Is it Possible in sql server.

Thanks
Ram Kumar
Posted

1 solution

Try this:

Select Count(*) from student

union

Select Count(*) from student2
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900