Please note that the guides below require SQL Server Management Studio (SSMS) and have been tested with SSMS v19.1.56.0 and SQL Server 2022 (RTM-CU8, KB5029666, v16.0.4075.1, X64).
In SQL Management Studio:
security
>logins
>sa
> [double click to open properties]general
>password
> [set a password]status
>login
> [set toEnabled
][ok]
In SQL Server Configuration Manager:
SQL Server Network Configuration
>Protocols for SQLEXPRESS
> [double click TCP/IP]Protocol
> [Enabled
YES]IP Addresses
>IP1
,IP10
,etc > [Active
YES,Enabled
YES,TCP Port
1433][ok]
Execute query in SQL Management Studio:
USE [master]
GO
EXEC xp_instance_regwrite
N'HKEY_LOCAL_MACHINE',
N'Software\Microsoft\MSSQLServer\MSSQLServer',
N'LoginMode',
REG_DWORD,
2; -- sql+windows auth
GO
In services.msc
:
- set SQLBrowser service startup to
Automatic
- start SQLBrowser service
This is a quick guide on how to allow other database management tools (eg. DBeaver) to connect to your locally installed SQL Server instance.
- enable/create a sql server user (eg.
sa
) (see dedicated section) - enable mixed auth (see dedicated section)
- enable tcp-ip login (see dedicated section)
- enable browser service (see dedicated section)
- stop and start SQL Server and SQL Server Browser services
- connect with these credentials
host 127.0.0.1\SQLEXPRESS
port 1433
user sa
pass <selected password>
Please note: server name 127.0.0.1\SQLEXPRESS
should be what you see in SQL Server Management Studio's object explorer and will probably vary depending on the server version.