Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
To test connectivity to an instance of SQL Server, use the sqlcmd utility.
To log in to the default instance of SQL Server
From a command prompt, enter the following command to connect by using Windows Authentication:
sqlcmd [ /E ] [ /S servername ]
To log in to a named instance of SQL Server
From a command prompt, enter the following command to connect by using Windows Authentication:
sqlcmd [ /E ] /S servername\instancename
See Also
Other Resources
sqlcmd Utility
osql Utility
Managing Services How-to Topics