I was assisting some friends with a database issue. For the life of us, we could not get the database registered.
I eventually went down the path of, “How was the authentication set up?” This was the right question, but the answer was not readily found. We really did not want to uninstall and re-install the database, so one of us searched MSDN and found that the authetication mode is stored in the registry.
The registry path: \HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer\
The registry key: LoginMode – REG_DWORD – 0×00000001
I found that you need REG_DWORD to be 0×00000002 for mixed mode authentication.
You can change the value of the REG_DWORD by double-clicking the registry key(LoginMode) and replacing the value from 1 to 2.
Note: Make sure the radio button is still on hexadecimal
After the DWORD was changed, the database authenticated and all was right in the world.
This was a default installation so if you created an instance name, your registry path will differ only slightly towards the end of the path.
59 Comments
Thank you for posting this!!! You really saved me hours of grief.
Thank you. I struggled for hours tried EVERYTHING short of re installing the software.
Cool.
El Matador
Thanks from me too :)
I have a problem. When I see in properties of management studio its pointing to windows only. Now I didn’t have any windows authenticated sys admin user to change in management studio. when I followed your steps REG_DWORD is pointing to 2 only. Please advise.
It is a great information. it helped me lot in creating installation package of our application. Thanks a lot.
thank U very much
Thank you, for posting this article. This has saved my time. This article is very helpful. Please mention how to put user name and password if changed from windows authentication to server authentication. and how to change this. This article will be complete then.
I found the GUI associated with this register key, here is what you must do:
- Inside MS SQL Server Management Studio (Express), login with Windows account.
- Right-click the highest (root) item in the Object Explorer (%COMPUTERNAME%\SQLEXPRESS) and select ‘Properties’.
- Click tab ‘Security’, and there you can change from native to mixed mode.
- Once saved -> Right-click the %COMPUTERNAME%\sqlexpress under the Registered Servers window and select SQL Server Configuration Manager.
- Disconnect the Management Studio.
- Inside the Configuration Manager, Stop and Restart the SQL Server service.
- Now you can login with the SQL Authenticated users to your database engine.
Good luck!
Sweet, this info helped me out a lot. Thanks
thanks a lot for this article
thanks, very interesting
greaaat , i found manyyyy q and only 2 posts that really helped with this suject. really the security of sql 2005 is full of tricks esp. when working with a web application(my interrest) .this is a really good solution
here you give such to much simple ,people want to change sql authontication user/pwd . !!!!!!!!1
Thank’s, very intrestin articles!
Many Thanks! Realy helpfull article.
Really appreciate it. This tip saved me a lot of time.
Thanks, i find this a long time)
thank you very very much!
Thanks you very much, it really works… =)
Its great idea !!!
Very interesing !!!
Very beautiful and informative blog, is more than such!
Very interesing!
Thank you for your site, a very useful resource, very nice blog
Very interesting and informative blog, thanks you !
Сенкс. Это именно то, что мне нужно было :)
Thanks a lot, financially I can go home!
thanks a lot.
А у тебя тоже куча спама в комментах? Меня достали уже эти спамеры гребанные.
Worked perfectly
Thanks. You really slove my problem. I was trying for last three days to change this setting but not get sucess. Thanks a lot for this help friend.
Даа… По моему мнению в данном посте нет никакой логики :)
Ваш пост навел меня на думки *ушел много думать* …
Все отлично, но вот у любого блога постоянная проблема с трансляцией rss! Хотелось бы и с коментами получать. Но нет. Это вообще решаемо? :)
Очень интересно. Но чего-то не хватает. Может быть, стоит добавить каких-нибудь картинок или фото?
Может быть кто-нить поделится ссылочкой на что-нибудь из этой же тематики? Уж очень заинтересовало
Интересно, а почему так редко блог обновляете?
Спасибо вам за сайт, очень полезный ресурс, мне очень нравится
Опутеть как интересно, во задвигаете. Класс!
Очень интересно!!! Только не очень могу понять как часто обновляется ваш блог?
Ваш пост навел меня на думки *ушел много думать* …
Блог в ридер однозначно
Не стану говорить за остальных, но именно мне этот пoст понравился.
Огромное вам человеческое спасибо, очень актуальная заметка.
Понравилась статья. А будет ли продолжение ?
Хорошо пишете. Надеюсь, когда-нибудь увижу нечто подобное и на своем блоге…
Занимательная статья, да и сам сайт я смотрю очень даже не плох. Попал сюда по поиску из Google, занес в закладки :)
Спасибо вам за сайт, очень полезный ресурс, мне очень нравится
Опутеть как интересно, во задвигаете. Класс!
Спасибо огромное. Почитал и понравилось. Картинок бы ещё.
Спасибо. Уже не первый раз по делу пишете!)
Poluchila pis’mo. Ja soglasna na obmen stat’jami.=)
cheapest Levoxyl online
thanks guys .. saved my life ;)
Thanks
Does anyone know how to change the username in the authentication. I’m fine with using Windows auth, but I’m moving databases to a new domain and need to change the user account.
>>>Секреты контакта<<<
Вконтакте – мой любимый сайт! Я бы даже сказала, что он полностью отражает мою сущность – любою открытое общение, новые знакомства, юмор, музыку. Мне хочется, чтобы на моей странице все было красиво. Теперь я могу писать прикольными символами, добавлять симпотные картинки. У меня все как бы разложено по полочкам, все понятно и хорошо оформлено. А еще, честно признаюсь, я люблю пройтись по закрытым страничкам. Чувствую себя таким хакером))))
>>>Правда о вконтакте.ру<<<
всегда самые свежие фильмы
Служба сайт знакомств для флирта это возможность быстро найти партнера для отношений и друга. Топ 100 девушки и парни с фото. Виртуальное общение в чате для свиданий. Интернет дневники и блоги для всех! Мир общения и встреч для любви и развлечений. Лучший сайт знакомств для тех, кто хочет познакомиться. Бесплатные знакомства в Москве, Санкт Петербурге (Питере), Новосибирске, и других городах России.
Автор, а Вы в каком городе живете если не секрет?