SQL Server 2005 Mixed Mode Authentication

just wondering if you can use mixed mode for SQL Server 2005 for user sa? I know how to do this in the management studio, but this is not enough for the user "sa". I think it needs to be done where else.

I try to connect to the database through the console application, but continue to receive the error message "Account disabled"

Greetings

Louis

+3
source share
3 answers

SQL Express 2005 SQL Server Management Studio, :

( % WINDIR%\regedit.exe) HKLM\Software\Microsoft\Microsoft SQL \MSSQL.1\MSSQLServer .

LoginMode. , 1. 2. .

( → Run → services.msc) MSSQL Server (SQLEXPRESS). .

SQL Server sa. OSQL :

osql -E -S .\SQLEXPRESS
ALTER LOGIN sa ENABLE ;
GO
ALTER LOGIN sa WITH PASSWORD = '<password>' ;
GO

, :

osql -U sa -S .\SQLEXPRESS
+7

SQL Server Mixed Mode Authentication, enable sa. Security->Logins.

0

Source: https://habr.com/ru/post/1790966/


All Articles