• 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

  • What is Dependency Injection(DI)
    Hi friends! Today we are going to learn about Dependency Injection and in our last session we have come across Static classes and where it s...
  • C# Programming Examples on Sorting
    Today i am going to tell you some of the Sorting programming questions in C#. Q1- Write a C# program to perform Selection sort. Ans:  Sel...
  • Calling Web API Service in a Cross-Domain Using jQuery AJAX
    In this article, I am going to discuss Calling Web API Service in a Cross-Domain Using jQuery AJAX . Please read our previous article befor...
  • ViewBag in ASP.NET Core MVC
    In this article, I am going to discuss the use of ViewBag in ASP.NET Core MVC application with examples. Please read our previous article ...
  • 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...
  • What is Abstract Class and When we should use Abstract Class
    Hi friends! In our previous sessions we have seen  Difference Between Class and Struct . And in our last session  we learnt Usability of Sec...
  • Binary to Decimal Conversion in C# with Examples
    In this article, I am going to discuss the Binary to Decimal Conversion in C# with some examples. Please read our previous article where w...

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