title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | helpviewer_keywords | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Log In to an Instance of SQL Server (Command Prompt) |
Learn about the sqlcmd utility. See how to use it in a command prompt to test connectivity to an instance of SQL Server. |
rwestMSFT |
randolphwest |
03/14/2017 |
sql |
configuration |
how-to |
|
[!INCLUDE SQL Server] This topic describes how to test connectivity to an instance of [!INCLUDEssNoVersion], use the sqlcmd utility.
-
From a command prompt, enter the following command to connect by using Windows Authentication:
sqlcmd [ /E ] [ /S servername ]
-
From a command prompt, enter the following command to connect by using Windows Authentication:
sqlcmd [ /E ] /S servername\instancename