Database Reference
In-Depth Information
Press the Enter key on line
1>
to create a new line. Pressing Enter executes the
SELECT
query. Type
GO
on line
2>
and press Enter, to execute all statements since the last
GO
statement (see Figure 6-4). Figure 6-5 shows the results of the sqlcmd query entered.
As you can see, executing a query isn't difficult.
3.
Figure 6-4.
Executing a
SELECT
Figure 6-5.
Sqlcmd query results