How To Login Using SQL Server Authentication

Microsoft SQL Server undoubtedly is  the most reliable, capable of handling complex structured data. It is widely used as database for some big companies. And if you are a software developer, or you want to work with SQL server and your just beginner you first need to install SQL Server and SSMS (SQL server database management studio), follow this link for installation here.

If you are really beginner and got confused to connect SQL server using SQL Server Authentication, follow this steps.

1. SQL Server Management studio
Open SQL Server Management studio, login using default SQL server Windows connection, with default username, and no password by default.

2. Create new login user
Then create new username and password by click localhost > security > login > right click and new login.

Then fill the form: 
- login name: admin
- admin : password
- check SQL server authentication, instead of Windows authentication

Next step is to allow SQL Server Authentication

2. Change server authentication type
On the object explorer, right click on the object, choose Properties, and popup will show, click Security on the sidebar, under Server authentication, check SQL Server Windows Authentication Mode

3. Click OK

4. Enable TCPIPNow, open SQL Server Configuration manager. Expand SQL Server Network Configuration, and then click Protocols for .

The default instance (an unnamed instance) is listed as MSSQLSERVER. If you installed a named instance, the name you provided is listed. SQL Server 2012 Express installs as SQLEXPRESS, unless you changed the name during setup.

In the list of protocols, right-click the protocol you want to enable (TCP/IP), and then click Enable.

6. Set a static port

You can use another port you want

7. Restart SQL Server
Still on the open SQL Server Configuration manager, choose SQL server service at the left side bar, then right click on the SQL Server (MSSQLSERVER) at the right side, and choose to restart the services.

Now you can test by login using your new login username and password you created earlier.

If you still struggle connecting to your database, please refer to this official documentation : Lesson 2: Connecting from Another Computer


Popular posts from this blog

Flixify Video Streaming Platform

ERROR 1348 Column Password Is Not Updatable When Updating MySQL Root Password

Push Notification Cordova, FCM And PHP