1. Home
  2. Computing & Technology
  3. Databases

SQLCMD Step-by-Step

By Mike Chapple, About.com

4 of 6

Entering a Query

Mike Chapple
Next, you may begin typing a SQL statement at the 1> prompt. You may use as many lines as you wish for your query, pressing the Enter key after each line. SQL Server will not execute your query until explicitly instructed to do so (as shown in the next step).

In this example, we execute the following query:
SELECT *
FROM HumanResources.shift
Explore Databases
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Databases
  4. SQL Server
  5. Entering a Query

©2009 About.com, a part of The New York Times Company.

All rights reserved.