I've been a long time Oracle user and generally if I needed to run multiple SQL queries, I would end one with a semicolon (;) and then start the new one. Example:
Select * from dual;
Select * myTable;
Questions:
- How can I go about running the whole script in SQL Server?
- How can I replicate the behavior where if I put the cursor on the second SQL statement and press F9 (or F5 in SQL Server) that only the second statement runs? In other words, if I put my cursor anywhere in the current SQL statement and press the Execute button, it will run everything after the previous semicolon (;)?
Thank you.