Changing the Authentication method

  • Hello, I have installed SQl server 2008 with Windows authentication method. I am having trouble getting an odbc connection so I would like to try connecting with SQL authentication. However, I cant find how to change to this method. Could any one help please?

  • Right click on the SQL Server in SSMS and select properties.

    In the properties dialog, you have multiple pages in the left page, select security page.

    It will display the current authentication mode, select Mixed Mode and a series of OK buttons.

    Restart the SQL Server (No need to reboot the machine) Just right click on the SQL Server and choose restart..


    Bru Medishetty

    Blog -- LearnSQLWithBru

    Join on Facebook Page Facebook.comLearnSQLWithBru

    Twitter -- BruMedishetty

  • What error are you having with ODBC?

    Bru's method will allow you to change the authentication method. Be sure that you set a strong SA password if you enable SQL authentication to prevent issues

  • OK, so I have done that. My SQl Server Authentication is now set on "SQL Server and Windows Authentication mode". I dont see any where on the properties page where I enter the SQl username and password. Could you direct me again please.

    BTW, my SQL server is on a Windows 2008 Small Business server which is not acting as a domain controller. So should I create a local user account to use for my SQL authentication, cheers

  • With SQL Authentication, you now must add a "login" to the server and a "user" to the database you are accessing. go to the security folder under your server (databases, management, etc. One is security). Then you can right click and create a new "login", check SQL Auth, give it a password. You need to set a default database, and then map a user. The dialog will allow you to create a user in the database with the same name and map it.

  • I have created the new login, given it a password and set the default database. I am confused about the next step of "map a user". Sorry

  • In the screen where you are creating the Login, in the left hand pane you have multiple pages, in that choose User Mappings.

    It has the databases in your SQL Instance, choose the database by selecting corresponding to your database and choose a suitable database role.


    Bru Medishetty

    Blog -- LearnSQLWithBru

    Join on Facebook Page Facebook.comLearnSQLWithBru

    Twitter -- BruMedishetty

  • Edited : The reply was double posted.


    Bru Medishetty

    Blog -- LearnSQLWithBru

    Join on Facebook Page Facebook.comLearnSQLWithBru

    Twitter -- BruMedishetty

  • I think I have done everything above, but my odbc is still not working. This is what I get

    Connection failed:

    SQl State 08001

    SQL server error 1326

    Microsoft [SQL Server Native Client 10.0]Named pipes provider Could not open a connection to sql server[1326]

    Connection failed

    SQl State HYT00

    SQL Server Error 0

    Login Time out expired

    I am trying to create a FIle DSN using SQl Server native Client 10. Frustrated!!!!

  • Check in SQL Server Configuration Manager, under network settings. If Named Pipes are enabled.


    Bru Medishetty

    Blog -- LearnSQLWithBru

    Join on Facebook Page Facebook.comLearnSQLWithBru

    Twitter -- BruMedishetty

  • I had previously enabled named pipes. Since I have changed the authentication method I can no longer connect using either method to SSMS. I noticed also that both SQL Server service and SQL Server agent service are no longer running and wont start when I try to start them manually. I seem to be locked out totally now....

  • Look at the SQL Server error log and post the error message(s) here.


    Bru Medishetty

    Blog -- LearnSQLWithBru

    Join on Facebook Page Facebook.comLearnSQLWithBru

    Twitter -- BruMedishetty

Viewing 12 posts - 1 through 11 (of 11 total)

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