• Home
  • About
  • Contact
  • ado.net
  • angular
  • c#.net
  • design patterns
  • linq
  • mvc
  • .net core
    • .Net Core MVC
    • Blazor Tutorials
  • sql
  • web api
  • dotnet
    • SOLID Principles
    • Entity Framework
    • C#.NET Programs and Algorithms
  • Others
    • C# Interview Questions
    • SQL Server Questions
    • ASP.NET Questions
    • MVC Questions
    • Web API Questions
    • .Net Core Questions
    • Data Structures and Algorithms

Friday, August 18, 2017

Connecting to SQL Server using SSMS

 Abhishek Tomer     August 18, 2017     Management Studio, SQL Server, SSMS     No comments   

Introduction
Hi friends! In this blog we will be discussing How to connect to the SQL Server using SQL Server Management Studio (SSMS).

Background
SQL Server Management Studio (SSMS), is the client tool that can be used to connect to the Database engine and write/execute SQL queries.

Process to Connect to SSMS
Method 1:
To connect to the SQL Server Management Studio
  1. Click Start
  2. Select All Programs
  3. Select Microsoft SQL Server 2005, 2008, 2008 R2, 2012 or 2016(Depending on the version installed)
  4. Select SQL Server Management Studio
Connecting to Sql server Management Studio
SSMS in All Programs
Method 2:
To connect to the SQL Server Management Studio
  1. Click Start
  2. Type "SSMS" without quotes("")
  3. Select SQL Server Management Studio
Connecting to Sql server Management Studio using Search
SSMS using Search
Method 3:
To connect to the SQL Server Management Studio
  1. Click Start
  2. Type "run" or press Window + R.
  3. Type "SSMS" without quotes("")
  4. Hit Enter.
Connecting to Sql server Management Studio using Run
Run Command to open SSMS
You will now see, Connect to Server window.
Sql Server Management Studio connection to server
Sql Server Management Studio
  1. Select Database Engine as the Server Type. The other options that you will see here are Analysis Services(SSAS), Reporting Services (SSRS) and Integration Services(SSIS).
    Server type = Database Engine 
  2. Next you need to specify the Server Name. Here we can specify the name or the server or IP Address.If you have SQL Server installed on your local machine, you can specify, (local) or just . (dot) or any other name that you have specified while installing SQL Server
    Server name = (local) / . / othername
  3. Now select Authentication. The options available here, depends on how you have installed SQL Server. During installation, if you have chosen mixed mode authentication, you will have both Windows Authentication and SQL Server Authentication. Otherwise, you will just be able to connect using windows authentication.
  4. If you have chosen Windows Authentication, you don't have to enter user name and password.
  5. If you have chosen SQL Server Authentication, you have to enter user name and password to connect to your database.
Now you are successfully connected with the Sql Server as you can see in the below picture.
Start writing Sql Queries
Start writing Sql Queries
Now, click on New Query, on the top left hand corner of SSMS (highlighted in the about picture). This should open a new query editor window, where we can type SQL queries and execute.

Summary:
SSMS is a client tool and not the Server by itself. Usually database server (SQL Server), will be on a dedicated machine, and developers connect to the server using SSMS from their respective local (development) computers.

So, Guys this is how we Connect to SQL Server using SSMS.
I Hope this post will be helpful to understand Connecting to SQL Server using SSMS.

Please share this post with your friends and colleagues to help them.

For any queries please post a comment below.

Happy Coding ðŸ˜‰
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Newer Post Older Post

0 comments:

Post a Comment

If you like this website, please share with your friends on Facebook, Twitter, LinkedIn.

Join us on Telegram

Loved Our Blog Posts? Subscribe To Get Updates Directly To Your Inbox

Like us on Facebook

Popular Posts

  • Creating and Working with Database
    Hi friends! In our last post we have seen different approaches how we can connect with SQL Server Management Studio(SSMS). Today, We are g...
  • Introduction to Entity Framework
    Before .NET 3.5 as a developer, we often used to write ADO.NET code to perform CRUD operation with the underlying database. For this, we ne...
  • Recursion And Back Tracking
    In this article, I am going to discuss Recursion And BackTracking in detail. Please read our previous article where we discussed Master Th...
  • Filters in ASP.Net MVC
    Hi friends! Today we are going to discuss about using a very important feature of MVC i.e. “Filters“ . Filters are a unique feature of Asp...
  • Data Parallelism in C#
    Introduction: Hi, in this blog we are going to discuss a very important feature of C# that is data parallelism. Data parallelism means the ...
  • Creating and Working with tables in Sql Server
    Hi friends! In our last post we have seen How to create Database and perform Alter, Delete/ Drop operation on databases in SQL Server. Tod...
  • Entity Types in Entity Framework
    In this article, I am going to discuss the Entity Types in Entity Framework in detail. Please read our previous article where we discussed...

Blog Archive

Contact Form

Name

Email *

Message *

Tags

.Net .Net Core .Net Core MVC Algorithm Angular Anonymous Types Asp.Net Asp.Net MVC Blazor C# Data Structure Database Design Patterns Entity Framework Entity Framework Core Filters Interview Question Management Studio Programming Programs SQL Server SSMS Web API

Copyright © C# Techtics | All Right Reserved.

Protected by Copyscape