Go to the command prompt window (Run→cmd) Enter sqlcmd and press enter. You now have a trusted connection to the default instance of SQL Server that is running on your computer. ... To end the sqlcmd session, type EXIT at the sqlcmd prompt.