After installing SQL Server and SQL Server Management Studio, the first thing I needed was a working connection to the local SQL Server.

The connection itself was straightforward once the correct values were in place. For my setup, SQL Server was running on the same Windows computer as a default instance, so I could connect with localhost and Windows Authentication.

This guide follows the same setup I used: open SSMS, connect to the local server, confirm the connection in Object Explorer, and create the first database.

Before you begin

This walkthrough assumes that SQL Server and SQL Server Management Studio 22 are already installed on the same Windows computer.

For this local setup, I used:

  • Server name: localhost
  • Authentication: Windows Authentication
  • Instance type: Default instance
  • Instance ID: MSSQLSERVER

I did not create a database or change other SQL Server settings at this point. The first goal was simply to connect SSMS to the local server.

How to connect to SQL Server using SSMS

1. Open SQL Server Management Studio 22

Open the Windows Start menu and search for SQL Server Management Studio 22.

Open the application. The first launch can take a little longer while SSMS prepares its initial environment.

If SSMS was installed through Visual Studio Installer, you can open from Launch option.

SQL Server Management Studio 22 available to launch from Visual Studio Installer

2. Open the SQL Server connection window

When SSMS starts, the Connect window appears. This is selected the local SQL Server and the authentication method.

On my setup, Windows Authentication was already selected. The Server Name field still needed to be completed.

I left the other settings alone for now.

SQL Server Management Studio Connect window with Windows Authentication selected

3. Enter localhost as the Server Name

In the Server Name field, you can enter your server name:

localhost

The connection settings used in this walkthrough were:

Setting Value
Server Name localhost
Authentication Windows Authentication
User Name Current Windows account
Database Name <default>
Encrypt Mandatory

With Windows Authentication, SSMS uses the Windows account that is already signed into the computer. I did not need to enter a separate SQL username or password. you call follow my step;

4. Check Trust Server Certificate

For this local development setup, I checked Trust Server Certificate.

The final connection values were:

  • Server Name: localhost
  • Authentication: Windows Authentication
  • Trust Server Certificate: Checked

I then selected Connect.

SSMS connection settings with localhost and Trust Server Certificate selected

Why localhost works in this setup

During SQL Server installation, I used the default instance.

The instance ID is:

MSSQLSERVER

Because SQL Server is running as the default instance on the same computer, localhost is enough for this connection.

I do not need to enter:

localhost\SQLEXPRESS

That kind of server name is relevant when SQL Server has been installed as a named instance such as SQLEXPRESS.

If localhost does not work on another computer, checking whether SQL Server was installed as a default or named instance is a useful first step.

Confirm that SQL Server is connected

After the connection succeeded, I checked Object Explorer on the left side of SSMS.

The connected localhost server appeared at the top, with the normal SQL Server folders underneath it.

  • Databases
  • Security
  • Server Objects
  • Replication
  • Management

Seeing these folders confirmed that SSMS was connected to the local SQL Server.

In my setup, SQL Server Agent also showed Agent XPs disabled. That did not prevent me from creating the database used in this walkthrough.

SSMS Object Explorer showing a successful connection to the local SQL Server

Create the first SQL Server database

5. Open New Database

Once the connection was working, I moved to the Databases folder in Object Explorer.

The path was:

localhost → Databases

Click right button on Database name Databases and selected:

New Database...

SSMS Databases context menu with New Database selected

6. Enter the database name

The New Database window opened.

In the Database name field, I entered database name, you can also your database name as relevent your project name (Database):

DocuPulseAI

I prefer keeping the application and database names easy to associate. It becomes more useful later when the same SQL Server contains databases for several different projects.

At this stage, I did not change the remaining database settings.

  • Owner: <default>
  • Data file: default
  • Log file: default
  • Initial Size: default
  • Autogrowth: default
  • Path: default
  • Options: default

There are many settings available in this window, but I did not change them simply because they were there. The defaults were enough for this first local database and you can change settings, but I recommend use simple settings.

I selected OK to create it.

SSMS New Database window for creating the DocuPulseAI database

7. Check that the database was created

Back in Object Explorer, I expanded the Databases folder.

The new DocuPulseAI database appeared in the list.

That was the final check I needed. The local SQL Server connection was working, and the project database had been created successfully.

If a newly created database does not appear immediately, right-click Databases and select Refresh.

DocuPulseAI database successfully created and visible in SSMS Object Explorer

The complete setup at a glance

For this local Windows setup, the workflow was:

  1. Open SQL Server Management Studio 22.
  2. Enter localhost as the Server Name.
  3. Keep Windows Authentication selected.
  4. Check Trust Server Certificate.
  5. Select Connect.
  6. Confirm the server in Object Explorer.
  7. Right-click Databases.
  8. Select New Database....
  9. Enter DocuPulseAI.
  10. Keep the remaining database settings at their defaults.
  11. Select OK.
  12. Confirm that DocuPulseAI appears under Databases.

A few practical checks if the connection fails

localhost does not connect

First check whether the SQL Server service is actually running.

Then confirm whether SQL Server was installed as the default instance or a named instance.

A named SQL Server Express instance may use:

localhost\SQLEXPRESS

Windows Authentication does not work

Windows Authentication uses the Windows account currently signed in to the PC. That account needs permission to connect to the SQL Server instance.

A certificate-related error appears

In the local setup shown here, Encrypt is Mandatory and Trust Server Certificate is checked.

This article is describing my local development connection. A remote or production SQL Server can have different certificate and security requirements, so I would not copy this trust setting automatically to another environment.

The new database is not visible

Right-click the Databases folder and select Refresh.

If the database still does not appear, check whether the New Database window completed successfully.

Frequently asked questions

What should I use as the SQL Server name?

In this walkthrough, SQL Server is running as the default instance on the same PC, so I use localhost.

A named instance requires its instance name, such as localhost\SQLEXPRESS.

Why is the User Name field not editable?

Windows Authentication uses the Windows account already signed in to the computer. SSMS displays that account automatically.

Do I need to change the database file settings?

I did not need to change them for this first local database. The default settings were enough for the setup shown here.

How do I know SQL Server connected successfully?

Object Explorer shows the connected server and folders such as Databases, Security, Server Objects and Management.

Final thoughts

The first local SQL Server connection looked more complicated than it actually was. In my setup, the important pieces were simply localhost, Windows Authentication and the certificate setting used for this local connection.

Once Object Explorer showed the connected server, creating the database was a short process: open New Database, enter the project database name, keep the defaults, and confirm that the database appears in Object Explorer.

This walkthrough comes directly from the same hands-on development work I use while building DocuPulse.AI .