MSDE Authentication Mode/ sa Account & osql

  • Hi, there isn't an icon that sums up my state of mind regarding using osql. I'm trying to see what type of authentication my MSDE instance is using. I've followed the instructions in MS KB 322336 which tells me that I'm using Windows Authentication. So I now want to change the sa password so it tells me to type the following: 

    "To connect by using Windows authentication, type this command: use osql -E"

    to which I get the reply "'USE' is not recognised as an internal or external command......"

    Any ideas?

  • osql.exe -Syoursqlservername -E

     

  • Thanks, I'll give it a go.

  • Check the registry, HKLM\Software\Microsoft\MSSQLServer\MSSQLServer (or instance name).  Look at the data in the LoginMode.  If it is 2 you are using SQL Mixed Mode, otherwise you are using NT Authentication.

    Don

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply