How to connect Sqlcmd to the server? August 21, 2023 by Tarik (This one is going to sounds silly) my problem was that I wasn’t using capital ‘S’ Eg: C:\> SQLCMD -S localhost\sqlexpress