MSSQL configure server for SQL authentication. MSSQL login with username and password

In SQL Server Management Studio (SSMS) Object Explorer, right-click the server, and then select Properties. On the Security page, under Server authentication, select ‘SQL and Windows authentication mode’, and then select OK. You have to restart the server.

You can try to access the Database from command line with:

sqlcmd -S server -d database -U username -P password

Example:

sqlcmd -S SQLEXPRESS -d OFFICE_DB -U vs4 -P 123456qAz!

Hinterlassen Sie eine Antwort

Entdecken Sie mehr im Blog von Velislav Krastev

Abonnieren Sie jetzt, um weiterzulesen und Zugriff auf das vollständige Archiv zu erhalten.

Lesen Sie weiter