| title | Log In to an Instance of SQL Server (Command Prompt) | Microsoft Docs | |||||
|---|---|---|---|---|---|---|
| ms.custom | ||||||
| ms.date | 03/14/2017 | |||||
| ms.prod | sql-server-2016 | |||||
| ms.reviewer | ||||||
| ms.suite | ||||||
| ms.technology |
|
|||||
| ms.tgt_pltfrm | ||||||
| ms.topic | article | |||||
| helpviewer_keywords |
|
|||||
| ms.assetid | f67c11e3-c519-40c9-82c1-07efa9d9985e | |||||
| caps.latest.revision | 26 | |||||
| author | BYHAM | |||||
| ms.author | rickbyh | |||||
| manager | jhubbard |
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