.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Forum >> Sql Server >> Post New QuestionBookmark and Share Subscribe to Forum

Is there any way to set mixed mode authentication of SQL

Posted By: Hasanabbas Momin     Posted Date: October 14, 2010    Points:2   Category :Sql Server
Dear All,

I want to set mixed mode authentication of sqlserver without installing SQL server management studio 2005. I know by registry i can change it but its not possible on all platform. It will be helpful to me if its by command prompt.

Thanks & Regards
Hasanabbas Momin
Inspire Software Co.

Author: Sajid P K             
Posted Date: October 14, 2010     Points: 5   

Hi Momin

You can use undocumented procedure xp_regwrite/xp_instance_regwrite, to change the authentication mode form query.

exec master..xp_instance_regwrite N'HKEY_LOCAL_MACHINE',
'LoginMode', N'REG_DWORD', 2

0 or 2 => Mixed Mode
1 => integrated

Sajid P K

Author: Ramesh P             
Posted Date: October 20, 2010     Points: 5   

Here is the code to write in command prompt for mixed authendication mode.

exec master..xp_instance_regwrite N'HKEY_LOCAL_MACHINE',N'SOFTWARE\Microsoft\MSSQLServer\MSSQLServer','LoginMode', N'REG_DWORD', 2



Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend