Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > MS SQL Server > авторизация в MS SQL Server 2000


Автор: asmodeus 26.6.2006, 09:13
доброго всем настроения

пишу программу. в ней есть такой пункт:  

Программа должна проверить, что в MS SQL Server 2000 аутентификация проводиться средствами ОС Windows 2000 и если это не так, то исправить это.



как ето можно сделать ?? есть ли какая нить таблица системная или процедура? подскажите. smile   

Автор: asmodeus 26.6.2006, 13:27
так, как получить я уже нашел.

теперь вопрос стал такой: как поменять действующую авторизацию SQL server-а  

Автор: Mephisto 26.6.2006, 13:31
Что именно? Под каким логином Server запускаеться, или саму регистрацию? Если регистрацию, то заходишь в Enterprise Manager->Microsoft SQL Servers->SQL Server Group далее правой кнопкой на зарегестрированном сервере и Edit SQL Server Registration Properties. 

Автор: asmodeus 26.6.2006, 13:56
все. тема закрыта.

все нашел    smile

Добавлено @ 13:58 
to Mephisto . мне над было с помощью процедур иль еще как. изменить авторизацию в SQL server-е 

Автор: asmodeus 26.6.2006, 14:12
если кому т будет интересно. авторизацию можно изменить в реестре. 

(mixed или windows)

 вот тут нашел (http://support.microsoft.com/default.aspx?scid=kb;en-us;325022#9)

_____________________________________________________________________________

Turn on Mixed Mode Authentication after you install MSDE
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

By default, the value of the LoginMode Windows registry subkey is set to 1 for Windows Authentication. To turn on Mixed Mode authentication after you install MSDE, you must change this value to 2. The location of the LoginMode subkey depends on whether you installed MSDE as the default MSDE instance or as a named instance.• If you installed MSDE as the default instance, the LoginMode subkey is located in the following registry subkey:
HKLM\Software\Microsoft\MSSqlserver\MSSqlServer\LoginMode  
• If you installed MSDE as a named instance, the LoginMode subkey is located in the following registry subkey:
HKLM\Software\Microsoft\Microsoft SQL Server\Instance Name \MSSQLServer\LoginMode  
To change the value of LoginMode to 2, follow these steps:1. In Control Panel, open the Services tool, and then stop MSSQLSERVER and all other related services (such as SQLSERVERAgent). 
2. On the Start menu, click Run, type regedt32, and then click OK to start Registry Editor. 
3. Locate either of the following subkeys (depending on whether you installed MSDE as the default MSDE instance or as a named instance):• HKEY_LOCAL_MACHINE\Software\Microsoft\MSSqlserver\MSSqlServer\

-or- 
• HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SQL Server\Instance Name\MSSQLServer\ 
 
4. In the right pane, double-click the LoginMode subkey. 
5. In the DWORD Editor dialog box, set the value of this subkey to 2, verify that the Hex option is selected, and then click OK. 
6. Restart the MSSQLSERVER service and the SQLSERVERAgent service for this change to take effect. 

_____________________________________________________________________________


а посмотреть можно вот етой процедуркой: exec master..xp_loginconfig 'login mode'

 

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)