I need to Use Windows User for SQLCMD.
C:\Users\Administrator>sqlcmd -S myserver\myinstance -U mydomain\myuser -P ***
This Command Not Correct . How Can I figured This? Windows Authentication Is OK! Password is Correct! Windows User Added To SQL Login.
mydomain\myuser
and runsqlcmd -S myserver\myinstance -E
or invoke sqlcmd withRUNAS
to specify alternate credentials.